Johnnylan / fudannlp

Automatically exported from code.google.com/p/fudannlp
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
使用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 commented 8 years ago
具体要设置成多大呢?这是数据结构问题?好像dep.m文件也不
是非常大啊~

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

GoogleCodeExporter commented 8 years ago
也是这个问题

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

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

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