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

调用依存句法分析出错 #26

Open
GoogleCodeExporter opened this issue Jan 22, 2016 · 3 comments
Open

调用依存句法分析出错 #26

GoogleCodeExporter opened this issue Jan 22, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

使用1.5版本的依存句法分析出错。调用JointParser parser = new 
JointParser("models/dep.m");时报内存不够的错误(已设置-Xmx2048m)�
��

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    at java.lang.reflect.Array.newArray(Native Method)
    at java.lang.reflect.Array.newInstance(Unknown Source)
    at java.io.ObjectInputStream.readArray(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readArray(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    at edu.fudan.nlp.parser.dep.YamadaParser.loadModel(Unknown Source)
    at edu.fudan.nlp.parser.dep.YamadaParser.<init>(Unknown Source)
    at edu.fudan.nlp.parser.dep.JointParser.<init>(Unknown Source)
    at com.netease.wordseg.SegDemo.testFudanNLP(SegDemo.java:48)
    at com.netease.wordseg.SegDemo.main(SegDemo.java:72)

Original issue reported on code.google.com by qf6...@gmail.com on 22 Nov 2012 at 9:34

@GoogleCodeExporter
Copy link
Author

具体要设置成多大呢?这是数据结构问题?好像dep.m文件也不
是非常大啊~

Original comment by jokephu...@gmail.com on 24 Dec 2012 at 9:01

@GoogleCodeExporter
Copy link
Author

也是这个问题

Original comment by itcain...@qq.com on 29 Dec 2012 at 8:56

@GoogleCodeExporter
Copy link
Author

我们测试最大3g就可以了,不是你们要多大内存?
下一版会解决这个问题,减少内存使用。

Original comment by xipeng...@gmail.com on 29 Dec 2012 at 2:14

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

No branches or pull requests

1 participant