Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Wordnet 3 file verb.idx #6

Open
KnowledgeGarden opened this issue Jan 19, 2013 · 5 comments
Open

Missing Wordnet 3 file verb.idx #6

KnowledgeGarden opened this issue Jan 19, 2013 · 5 comments
Assignees

Comments

@KnowledgeGarden
Copy link

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.

@ghost ghost assigned gsingers Jan 20, 2013
@gsingers
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Author

Yup!

On Sat, Mar 29, 2014 at 4:40 AM, Drew Farris [email protected]:

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//issues/6#issuecomment-38993237
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants