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

在虚拟机上运行Ganswer.jar的时候出现错误 #44

Open
HAIDIRAO opened this issue Jun 20, 2020 · 4 comments
Open

在虚拟机上运行Ganswer.jar的时候出现错误 #44

HAIDIRAO opened this issue Jun 20, 2020 · 4 comments

Comments

@HAIDIRAO
Copy link

Loading default properties from tagger edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger
Reading POS tagger model from edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger ... done [3.0 sec].
Adding annotator lemma
Loading parser from serialized file edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz ... done [1.0 sec].
Loading MaltParser ...ok!
Loading classifier from /home/raobuling/Documents/Ganswer/./././lib/stanford-ner-2012-11-11/classifiers/english.all.3class.distsim.crf.ser.gz ... done [3.9 sec].
/home/raobuling/Documents/Ganswer
NLPatterns.loadPredicateId() : ok!
Warning: DBO not found id count: 34
NLPatterns.loadDboPredicate() : ok!
Number of NL-Patterns-to-predicate mappings = 117885
NLPatterns.size = 31333
Predicate.size = 59347
Warning: Predicates not in DBpedia 2014 count: 1
Jun 20, 2020 8:45:04 PM edu.stanford.nlp.process.PTBLexer next
WARNING: Untokenizable: ိ (U+102D, decimal: 4141)
Jun 20, 2020 8:45:15 PM edu.stanford.nlp.process.PTBLexer next
WARNING: Untokenizable: ‌ (U+200C, decimal: 8204)
NLPatterns.addPredicateAsNLPattern(): ok!
NLPatterns.addHandwriteAsNLPattern(): ok!
NLPatterns.Paradict() : ok!
NLPatterns.buildInvertedIndex(): ok!
Loading entity id ...
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3181)
at java.util.ArrayList.grow(ArrayList.java:265)
at java.util.ArrayList.ensureExplicitCapacity(ArrayList.java:239)
at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:231)
at java.util.ArrayList.add(ArrayList.java:462)
at java.lang.String.split(String.java:2353)
at java.lang.String.split(String.java:2422)
at lcn.EntityFragmentFields.load(EntityFragmentFields.java:37)
at qa.Globals.init(Globals.java:72)
at application.GanswerHttp.main(GanswerHttp.java:71)

在虚拟机上运行java -jar Ganswer.jar 命令的时候出现这个错误,不知道原因,希望能得到解答,谢谢!

@nicklin96
Copy link
Collaborator

您好!根据错误信息显示,您运行gAnswer时的栈空间不足。要运行完整的dbpedia数据,需要20G左右的运行内存。您可以用环境变量来给java分配足够的内存。

@HAIDIRAO
Copy link
Author

HAIDIRAO commented Jul 11, 2020 via email

@nicklin96
Copy link
Collaborator

你好。我们上传了dbpedia用于建库的nt文件:
https://pan.baidu.com/s/1jQ_jGTniflzoqBhpz5tjnw 提取码 rpev

@HAIDIRAO
Copy link
Author

HAIDIRAO commented Jul 13, 2020 via email

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

2 participants