dair-iitd / OpenIE-standalone

Other
569 stars 73 forks source link

Error while compiling #17

Closed eyobn closed 6 years ago

eyobn commented 6 years ago

I was trying to run the OpenIE5.0 following the instruction in the build section. I have followed every steps but finally the project failed to compile properly. I was able to run OpenIE 4.2 but i failed to succeed with this one. The errors persist in all the running alternatives:-

  1. sbt compile
  2. sbt 'run-main edu.knowitall.openie.OpenIECli'
  3. sbt clean compile assembly
  4. sbt -J-Xmx10000M clean compile assembly It keeps generating 9 errors
    • not found: value MayIHelpYou
    • not found: type OnreExtraction
    • not found: value ListExtractorMainHelpers
    • not found: value ListExtractorLanguageModelBasedExtractor Please if anyone has resolved these issues i need your help. i have attached the screen shot of the errors here. error
swarnaHub commented 6 years ago

Here is the standalone jar for Open IE 5.0 - https://drive.google.com/file/d/0B9L6Jr6rcJcKZG1idDB6eGp4cTg/view

Download this and see if it works. You would still need the Language Model file and Wordnet.

eyobn commented 6 years ago

@swarnaHub Thank you. It helped. I am running it on 8GB and i think it is below the requirement. Is there any way it could run faster, i can not upgrade the memory in the mean time. it is running in command line environment but very slow.

swarnaHub commented 6 years ago

I can't really help you with that because the Language Model itself takes 10 GB of RAM to run. If you wish to run it on an 8 GB machine, use Open IE 4.2.

eyobn commented 6 years ago

so what am i getting is not OpenIE 5.0 or what? look below eyob@eyob-OptiPlex-7050:~/OpenIE-standalone$ java -Xmx10g -XX:+UseConcMarkSweepGC -jar openie-assembly.jar OpenJDK 64-Bit Server VM warning: Insufficient space for shared memory file: 25017 Try using the -Djava.io.tmpdir= option to select an alternate temp location.

Loading feature templates. Loading models. Loading lexica. Loading configuration. Loading feature templates. Loading models. Loading feature templates. Loading models. Loading lexica. Loading feature templates. Loading models. Loading feature templates. Loading models. Loading lexica. Loading feature templates. Loading models. Loading lexica. Initializing Language Model


swarnaHub commented 6 years ago

Yes, what you are seeing is indeed Open IE 5. I was suggesting that if you wish to get faster extractions on an 8 GB machine, use Open IE 4.2. There's no way I can reduce the memory requirements of Open IE 5.

eyobn commented 6 years ago

I understand now the 10GB is for faster extraction and it is not the minimum requirement. Thank you so much for the help.

swarnaHub commented 6 years ago

Closing the issue as it has been resolved.

eyobn commented 6 years ago

satisfied. just do it!