summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-01-15 11:07:36 +0800
committerPeng Wu <alexepico@gmail.com>2013-01-15 11:07:36 +0800
commitda2ed34e34891a2f74ee9c330dd56c246a76b67d (patch)
treec8f6d5b5965ce3e039bc1df1e5ae15b63e1e704c /lib
parent8e20db6052bc76b3ae53476248fd946581f0273e (diff)
downloadtrainer-da2ed34e34891a2f74ee9c330dd56c246a76b67d.tar.gz
trainer-da2ed34e34891a2f74ee9c330dd56c246a76b67d.tar.xz
trainer-da2ed34e34891a2f74ee9c330dd56c246a76b67d.zip
partialwordthreshold.py
Diffstat (limited to 'lib')
-rw-r--r--lib/myconfig.py11
1 files changed, 9 insertions, 2 deletions
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"