From 8b81a3c0377552fc240ba077826ea0fecf859b64 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Wed, 4 May 2022 10:50:43 +0800 Subject: [PATCH] LMs // Print entry counts when loading finishes. --- Source/Modules/LangModelRelated/SubLMs/lmAssociates.swift | 2 +- Source/Modules/LangModelRelated/SubLMs/lmCore.swift | 2 +- Source/Modules/LangModelRelated/SubLMs/lmLite.swift | 2 +- Source/Modules/LangModelRelated/SubLMs/lmReplacements.swift | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Modules/LangModelRelated/SubLMs/lmAssociates.swift b/Source/Modules/LangModelRelated/SubLMs/lmAssociates.swift index fe472030..6a705ed0 100644 --- a/Source/Modules/LangModelRelated/SubLMs/lmAssociates.swift +++ b/Source/Modules/LangModelRelated/SubLMs/lmAssociates.swift @@ -91,7 +91,7 @@ extension vChewing { keyValueMap[currentKV.key, default: []].append(currentKV) } } - IME.prtDebugIntel("\(keyValueMap.count) entries of data loaded from: \(path)") + IME.prtDebugIntel("\(count) entries of data loaded from: \(path)") theData = "" return true } diff --git a/Source/Modules/LangModelRelated/SubLMs/lmCore.swift b/Source/Modules/LangModelRelated/SubLMs/lmCore.swift index 15ff4b40..03115e76 100644 --- a/Source/Modules/LangModelRelated/SubLMs/lmCore.swift +++ b/Source/Modules/LangModelRelated/SubLMs/lmCore.swift @@ -125,7 +125,7 @@ extension vChewing { keyValueScoreMap[key, default: []].append(currentUnigram) } } - IME.prtDebugIntel("\(keyValueScoreMap.count) entries of data loaded from: \(path)") + IME.prtDebugIntel("\(count) entries of data loaded from: \(path)") theData = "" return true } diff --git a/Source/Modules/LangModelRelated/SubLMs/lmLite.swift b/Source/Modules/LangModelRelated/SubLMs/lmLite.swift index cd9267a6..755cfd9d 100644 --- a/Source/Modules/LangModelRelated/SubLMs/lmLite.swift +++ b/Source/Modules/LangModelRelated/SubLMs/lmLite.swift @@ -95,7 +95,7 @@ extension vChewing { keyValueMap[currentKV.key, default: []].append(currentKV) } } - IME.prtDebugIntel("\(keyValueMap.count) entries of data loaded from: \(path)") + IME.prtDebugIntel("\(count) entries of data loaded from: \(path)") theData = "" if path.contains("vChewing/") { dump() diff --git a/Source/Modules/LangModelRelated/SubLMs/lmReplacements.swift b/Source/Modules/LangModelRelated/SubLMs/lmReplacements.swift index 98939d87..e14e9e83 100644 --- a/Source/Modules/LangModelRelated/SubLMs/lmReplacements.swift +++ b/Source/Modules/LangModelRelated/SubLMs/lmReplacements.swift @@ -91,7 +91,7 @@ extension vChewing { keyValueMap[currentKV.key] = currentKV.value } } - IME.prtDebugIntel("\(keyValueMap.count) entries of data loaded from: \(path)") + IME.prtDebugIntel("\(count) entries of data loaded from: \(path)") theData = "" return true }