tamingtext / book

Taming Text Book Source Code
http://www.tamingtext.com
380 stars 207 forks source link

Missing Wordnet 3 file verb.idx #6

Open KnowledgeGarden opened 11 years ago

KnowledgeGarden commented 11 years ago

java.io.FileNotFoundException: c:\projects\SolrWatson\TT-Home\WordNet-3.0\dict\verb.idx (The system cannot find the file specified) That error pop in several surefire reports.

From here: http://www.shiffman.net/teaching/a2z/wordnet/ "Just found the way to fix this: rename all index.noun, index.verb... to noun.idx, verb.idx..." That response is from 2 years ago. I copied in the index.noun etc files, renamed as noun.idx,, etc, then got this failure: FileNotFoundException: c:\projects\SolrWatson\TT-Home\WordNet-3.0\dict\verb.dat (The system cannot find the file specified) Did the same thing to data.noun, etc. Those tests run fine. But, for now, I will not know if the system works since I'm running on Win7 64bit, with this failure not satisfied by anything I do:

Failed to set permissions of path: \tmp\hadoop-Admin\mapred\staging\Admin1270388141.staging to 0700 which is launched by the ExtractTrainingDataTest at the line: TrainClassifier.main(trainArgs);

rerunning even after giving that directory and sub directories full permissions, still fails. Perhaps org.apache.hadoop.fs.FileUtil.setPermission(FileUtil.java:653) either doesn't check first, or doesn't understand Windows, or something. I'll have to wait till I replicate this experience on a *nix box.

Added later: with my wordnet changes, it builds fine on Ubuntu. Have yet to run exercises. No clue what those changes do to wordnet's behaviors.

gsingers commented 11 years ago

What steps are you running? Can you share your setup? I suspect this is a Windows issue, but I need more info.

Note, the Hadoop related stuff will definitely not work on Windows (it might w/ Cygwin, but I haven't tested it)

KnowledgeGarden commented 11 years ago

Simply followed your ReadMe instructions precisely. Somewhere in the code, there was an attempt to find the file verb.idx, but the Wordnet 3 downloaded from your site link includes the file index.verb ; I googled that issue and found that someone else simply renamed the files (there are several). I iterated running mvn clean package until all errors related to wordnet were gone, then the windows issue raised its ugly head. Using the modified wordnet on an ubuntu box got a clean maven build.
I did not do a text search for "verb.idx" over the entire game book distribution, so I cannot say where the issue pops up, whether it's associated with unit tests or deeper in the wordnet code.

gsingers commented 11 years ago

Can you provide the full logs/output as a gist?

On Jan 20, 2013, at 1:45 PM, Jack Park wrote:

Simply followed your ReadMe instructions precisely. Somewhere in the code, there was an attempt to find the file verb.idx, but the Wordnet 3 downloaded from your site link includes the file index.verb ; I googled that issue and found that someone else simply renamed the files (there are several). I iterated running mvn clean package until all errors related to wordnet were gone, then the windows issue raised its ugly head. Using the modified wordnet on an ubuntu box got a clean maven build.

I did not do a text search for "verb.idx" over the entire game book distribution, so I cannot say where the issue pops up, whether it's associated with unit tests or deeper in the wordnet code.

— Reply to this email directly or view it on GitHub.

drewfarris commented 10 years ago

The java wordnet libraries look for different filenames on Windows, sadly:

http://grepcode.com/file/repo1.maven.org/maven2/net.sf.jwordnet/jwnl/1.3.3/net/didion/jwnl/princeton/file/AbstractPrincetonDictionaryFile.java?av=f

I'll add a caveat to the Readme the files in the README

KnowledgeGarden commented 10 years ago

Yup!

On Sat, Mar 29, 2014 at 4:40 AM, Drew Farris notifications@github.comwrote:

The java wordnet libraries look for different filenames on Windows, sadly:

http://grepcode.com/file/repo1.maven.org/maven2/net.sf.jwordnet/jwnl/1.3.3/net/didion/jwnl/princeton/file/AbstractPrincetonDictionaryFile.java?av=f

I'll add a caveat to the Readme the files in the README

Reply to this email directly or view it on GitHubhttps://github.com/tamingtext/book/issues/6#issuecomment-38993237 .