Comments (4)
你的机器是2g内存的吧..内存小
你设置下...
在eclipse中Run As--> Run Configurations--> Arguments 找到个框框 VM Arguments写上:-Xms1024m -Xmx1024m
https://github.com/ansjsun/ansj_seg/wiki/%E5%88%86%E8%AF%8D%E4%BD%BF%E7%94%A8demo
On 2013-4-8, at 下午6:18, 丛梓存 [email protected] wrote:
你好,我在eclipse中运行程序org.ansj.demo.demo.java的时候会报下面的这个异常:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at love.cq.domain.Branch.add(Unknown Source)
at love.cq.library.Library.insertWord(Unknown Source)
at love.cq.library.Library.insertWord(Unknown Source)
at org.ansj.library.UserDefineLibrary.loadFile(UserDefineLibrary.java:123)
at org.ansj.library.UserDefineLibrary.loadLibrary(UserDefineLibrary.java:164)
at org.ansj.library.UserDefineLibrary.(UserDefineLibrary.java:51)
at org.ansj.util.recognition.UserDefineRecognition.(UserDefineRecognition.java:23)
at org.ansj.splitWord.analysis.ToAnalysis$1.merger(ToAnalysis.java:61)
at org.ansj.splitWord.analysis.ToAnalysis.getResult(ToAnalysis.java:80)
at org.ansj.splitWord.Analysis.analysis(Analysis.java:174)
at org.ansj.splitWord.Analysis.paserStr(Analysis.java:181)
at org.ansj.splitWord.analysis.ToAnalysis.paser(ToAnalysis.java:97)
at org.ansj.demo.NatureDemo.main(NatureDemo.java:18)
我已经将xmx改为1G,请问设置为多大可以运行这个项目?—
Reply to this email directly or view it on GitHub.
from ansj_seg.
4g啊,是不是因为我没有导入tree-split 的jar包呢?
from ansj_seg.
tree-split 不用导入的..就是内存溢出了..你调整下内存肯定行..给上1g 或者512 都可以 调整办法
在eclipse中Run As--> Run Configurations--> Arguments 找到个框框 VM Arguments写上:-Xms1024m -Xmx1024m
from ansj_seg.
谢谢,搞定了
from ansj_seg.
Related Issues (20)
- 使用computeArticleTfidf进行关键词搜索的时候,能够引入stopword生效么? HOT 1
- Spring 项目中,Analysis 在 并发20时候会报错 java.lang.ArrayIndexOutOfBoundsException HOT 2
- 使用自定义词典,分词结果词性为啥固定是userDefine,改成啥都没用 HOT 1
- 停用词表 HOT 3
- 无法通过配置加载停用词词典 HOT 1
- 什么时候发行新版
- 分词直接取第一位报空指针异常 HOT 1
- maven仓库最新的是5.1.6的版本 好几年没更新了 什么时候更新 HOT 5
- not find crf model in ansj_seg 3.75
- TimeRecognition的小问题 HOT 1
- 你好,发现在default.dic中加入「 和 」 不会自动分词
- default.dic debug 程序可以读取出来,但是分词没生效
- 请问自定义词典是否支持热加载 HOT 1
- 自定义词典中单词和默认分词相同如何优先采用自定义词典单词(需要使用自定义词典中单词的词性) HOT 1
- 未从文件中加载ambiguity.dic时,直接使用AmbiguityLibrary.get(),得到null HOT 1
- 5.1.6版本NlpAnalysis分词器无法从读取用户自定义词典
- 怎么跳过默认的core.dic词库 HOT 1
- ansj如何对英文粘连起来的词分词? HOT 1
- 关键词抽取API,如何让配置文件里的自定义词典生效 HOT 1
- maven的最新5.1.6版本有点旧,大佬有空了可以迭代下,点赞👍
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansj_seg.