Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove vestiges of cdb dependence.

  • Loading branch information...
commit 02a51aa135bce620b3051c0af3d4573d596331ce 1 parent 53e63da
@benkasminbullock authored
Showing with 4 additions and 9 deletions.
  1. +1 −6 Makefile
  2. +1 −1  postagfix.py
  3. +1 −1  qq
  4. +1 −1  sentence.py
View
7 Makefile
@@ -17,16 +17,11 @@ clean:
-rm README
veryclean: clean
- -rm -f ./dict.cdb ./dict.txt
+ -rm -f ./dict.txt
dict: $(WORDNETDICT)
python ./convdict.py index.special $(WORDNETDICT)
-localdict: dict.cdb dict.txt
- -mkdir LOCAL
- mv dict.cdb dict.txt LOCAL/
- ln -s LOCAL/dict.cdb LOCAL/dict.txt .
-
HTMLDOC=htdocs/index-e.html
README: $(HTMLDOC)
View
2  postagfix.py
@@ -103,7 +103,7 @@ def feed(self, s):
docproc = PlainTextProcessor
else:
assert 0
- dict = Dictionary("LOCAL/dict.cdb")
+ dict = Dictionary("LOCAL/dict.txt")
out = Consumer()
pipeline = docproc(TextTokenizer(SentenceSplitter(POSTagger(dict, POSTagFixer(out)))))
pipeline.read(sys.stdin)
View
2  qq
@@ -28,7 +28,7 @@ def get_dictpath():
p = os.environ.get("SYSTEM_DICT")
if p: return p
dir = os.path.dirname(os.path.realpath(sys.argv[0]))
- for p in [ dir+"/dict.cdb", dir+"/dict.txt" ]:
+ for p in [ dir+"/dict.txt" ]:
if os.path.exists(p):
return p
return None
View
2  sentence.py
@@ -294,7 +294,7 @@ def feed(self, s):
docproc = PlainTextProcessor
else:
assert 0
- dict = Dictionary("LOCAL/dict.cdb")
+ dict = Dictionary("LOCAL/dict.txt")
out = Consumer()
#pipeline = docproc(TextTokenizer(out))
#pipeline = docproc(TextTokenizer(SentenceSplitter(out)))
Please sign in to comment.
Something went wrong with that request. Please try again.