diff options
author | Peng Wu <alexepico@gmail.com> | 2013-01-23 13:26:34 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-01-23 14:02:07 +0800 |
commit | d64d827209ec59a8886b5fb8bde949813d602cae (patch) | |
tree | ac73665cbc0308a9325261383ec587315285b5a7 /lib | |
parent | 014f1784618f2079dcf2404eb3e0e32dffedce74 (diff) | |
download | trainer-d64d827209ec59a8886b5fb8bde949813d602cae.tar.gz trainer-d64d827209ec59a8886b5fb8bde949813d602cae.tar.xz trainer-d64d827209ec59a8886b5fb8bde949813d602cae.zip |
write computeThreshold
Diffstat (limited to 'lib')
-rw-r--r-- | lib/myconfig.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/myconfig.py b/lib/myconfig.py index bcbc3de..161088e 100644 --- a/lib/myconfig.py +++ b/lib/myconfig.py @@ -147,6 +147,9 @@ class MyConfig: def getNewWordThreshold(self): return 0.10 / 2 # the first 5% in position + def getMinimumEntropy(self): + return 1. + def getMaximumIteration(self): return 20 # roughly around N @@ -161,3 +164,6 @@ class MyConfig: def getPartialWordFileName(self): return "partialword.txt" + + def getNewWordFileName(self): + return "newword.txt" |