随笔分类 - nlp分词
摘要:之前安装了几次没有成功, PengYi <notifications@github.com>,这哥们发email说: 看源代码里面,ltp是一个link。所以,git clone下来,这个目录下面是空的。需要进入源代码目录。把ltp删掉,然后在执行 git clone git@github.com:
阅读全文
摘要:Exception in thread "main" java.lang.IllegalArgumentException: No annotator named mentionat edu.stanford.nlp.pipeline.AnnotatorPool.get(AnnotatorPool.
阅读全文
摘要:发现,通过 命令行和java程序输出的依存句法结果不同。 java命令行带punctuation,而java程序中输出不带punctuation。
阅读全文
摘要:Collection tdl = gs.allTypedDependencies();// TreeGraphNode tsn = gs.root(); for(TypedDependency i: tdl){//reln表示节点的关系,dep表示依赖指向的节点 if(i.reln() == GrammaticalRelation.ROOT){...
阅读全文
摘要:参考:http://universaldependencies.org/docs/u/dep/
阅读全文
摘要:linux 下的Stanford词性标注java -mx1g -cp "/home/hadoop/stanford-corenlp-full-2017-06-09/stanford-postagger.jar:" edu.stanford.nlp.tagger.maxent.MaxentTagger
阅读全文
摘要:参考文档:http://www.cnblogs.com/baiboy/p/nltk1.html。只参考没有用他的百度盘上的zip文件。 Stanford: https://nlp.stanford.edu/software/ ,这是软件包下载地址。 我的环境: Python : 2.7.12 Nlt
阅读全文
摘要:安装 py@ubuntu:~/models/syntaxnet$ sudo pip install pyltp[sudo] password for py: The directory '/home/py/.cache/pip/http' or its parent directory is not
阅读全文
摘要:首先在/usr/local/ltp下放置一个词典,我为了测试就叫userdict.txt ,里面有三个词:解空间深度优先根节点先测试加入自定义词典时的效果:py@ubuntu:/usr/local/ltp$ pythonPython 2.7.12 (default, Nov 19 2016, 06:
阅读全文
摘要:安装gensim前要装python,numpy, scipy, 通过pip list检查开始安装gensim sudo pip install gensim 参考文档:http://www.jianshu.com/p/6d542ff65b1e http://kexue.fm/archives/431
阅读全文
摘要:首先要求自定义词典为utf-8编码格式,可用editplus等工具转换。 词典要求在配置文件中进行设置:
阅读全文
浙公网安备 33010602011771号