-->

Monty Lingua

Hrm, that's odd, I can't have the title MontyLinguaAMD64 for this emacs wiki mode.

Anyways, if you encounter an error like this:

python ./MontyLingua.py

****** MontyLingua v.2.1 ******

by hugo@media.mit.edu *****
Lemmatiser OK! Custom Lexicon Found! Now Loading! Fast Lexicon Found! Now Loading! 260759 Traceback (most recent call last): File "./MontyLingua.py", line 345, in m = MontyLingua() File "./MontyLingua.py", line 165, in __init__ self.theMontyTagger = MontyTagger.MontyTagger(trace_p,self.theMontyLemmatiser) File "/s1/temp/myfrdcsa/sandbox/montylingua-2.1/montylingua-2.1/python/MontyTagger.py", line 15, in __init__ self.theLexicon=MontyLexiconFast.MontyLexiconFast() File "/s1/temp/myfrdcsa/sandbox/montylingua-2.1/montylingua-2.1/python/MontyLexiconFast.py", line 37, in __init__ self.load_fastlexicon() File "/s1/temp/myfrdcsa/sandbox/montylingua-2.1/montylingua-2.1/python/MontyLexiconFast.py", line 101, in load_fastlexicon line1=self.array_fromfile(res_arr,self.word_start_arr,built_in_p,self.java_p,java_code='ws') File "/s1/temp/myfrdcsa/sandbox/montylingua-2.1/montylingua-2.1/python/MontyLexiconFast.py", line 254, in array_fromfile

array_ptr.fromfile(file_ptr,length) EOFError: not enough items in file

It is probably because you're using a different architecture. Just rm FASTLEXICON_*, and run again and it will rebuild those for your architecture.