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

raise OSError('Java command failed : ' + str(cmd)) #5

Open
lacls opened this issue Jul 19, 2019 · 0 comments
Open

raise OSError('Java command failed : ' + str(cmd)) #5

lacls opened this issue Jul 19, 2019 · 0 comments

Comments

@lacls
Copy link

lacls commented Jul 19, 2019

Step 1: Prep

at line 169:
create_train_data_restaurant(fn_train, args.out_dir+args.word_idx, args.out_dir, args.StanfordPOSTag_dir, args.domain,'Train', sent_len, sent_num)

  • I did try many days for searching this problem but it didn't help me to fix it at all
  File "/Users/lelac/anaconda3/lib/python3.7/site-packages/nltk/internals.py", line 145, in java
    raise OSError('Java command failed : ' + str(cmd))

OSError: Java command failed : ['/usr/bin/java', '-mx1000m', '-cp', 'stanford-postagger-full/stanford-postagger.jar', 'edu.stanford.nlp.tagger.maxent.MaxentTagger', '-model', 'stanford-postagger-full/models/english-left3words-distsim.tagger', '-textFile', '/var/folders/dm/1gjd_wh55fn_qy6bmsh17c340000gn/T/tmp08oode_y', '-tokenize', 'false', '-outputFormatOptions', 'keepEmptySentences', '-encoding', 'utf8']

Thanking,

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

1 participant