From da2ed34e34891a2f74ee9c330dd56c246a76b67d Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 15 Jan 2013 11:07:36 +0800 Subject: partialwordthreshold.py --- lib/myconfig.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/myconfig.py b/lib/myconfig.py index 4202b94..73a019b 100644 --- a/lib/myconfig.py +++ b/lib/myconfig.py @@ -11,6 +11,7 @@ class MyConfig: 'EvaluateEpoch': 1, \ 'PrepareEpoch': 2, \ 'PopulateEpoch': 3, \ + 'PartialWordThresholdEpoch': 4, \ } def getEpochs(self): @@ -129,11 +130,17 @@ class MyConfig: def getMinimumOccurrence(self): return 3 # minimum word occurrence - def getPartialWordThresHold(self): + def getPartialWordThreshold(self): return 0.10 # the last 10% in position - def getNewWordThresHold(self): + def getNewWordThreshold(self): return 0.10 / 2 # the last 5% in position def getMaximumIteration(self): return 20 # roughly around N + + def getWordsListFileName(self): + return "words.txt" + + def getWordsWithPinyinFileName(self): + return "oldwords.txt" -- cgit