nltk安装第三方自然语言处理工具
2016-09-12 16:32
405 查看
nltk安装第三方自然语言处理工具:
https://github.com/nltk/nltk/wiki/Installing-Third-Party-Software
To search for java binaries (jar files), nltk checks the java
Make sure java is installed (version 1.8+)
Download & extract the stanford tokenizer package (contains the stanford tagger):
http://nlp.stanford.edu/software/lex-parser.shtml
Download & extract the stanford NER package http://nlp.stanford.edu/software/CRF-NER.shtml
Download & extract the stanford POS tagger package http://nlp.stanford.edu/software/tagger.shtml
Download & extract the stanford Parser package: http://nlp.stanford.edu/software/lex-parser.shtml
Add the directories containing
Point the
e.g.
nltk安装第三方自然语言处理工具:
https://github.com/nltk/nltk/wiki/Installing-Third-Party-Software
How NLTK Discovers Third Party Software
NLTK finds third party software through environment variables or via path arguments through api calls. This page will list installation instructions & their associated environment variables.Java
Java is not required by nltk, however some third party software may be dependent on it. NLTK finds the java binary via the systemPATHenvironment variable, or through
JAVAHOMEor
JAVA_HOME.
To search for java binaries (jar files), nltk checks the java
CLASSPATHvariable, however there are usually independent environment variables which are also searched for each dependency individually.
Windows
Download & Install the jdk on java's official website: http://www.oracle.com/technetwork/java/javase/downloads/index.html?ssSourceSiteId=otnjpLinux
It is best to use the package manager to install java.Stanford Tagger, NER, Tokenizer and Parser.
To install:Make sure java is installed (version 1.8+)
Download & extract the stanford tokenizer package (contains the stanford tagger):
http://nlp.stanford.edu/software/lex-parser.shtml
Download & extract the stanford NER package http://nlp.stanford.edu/software/CRF-NER.shtml
Download & extract the stanford POS tagger package http://nlp.stanford.edu/software/tagger.shtml
Download & extract the stanford Parser package: http://nlp.stanford.edu/software/lex-parser.shtml
Add the directories containing
stanford-postagger.jar,
stanford-ner.jarand
stanford-parser.jarto the
CLASSPATHenvironment variable
Point the
STANFORD_MODELSenvironment variable to the directory containing the stanford tokenizer models, stanford pos models, stanford ner models, stanford parser models e.g (
arabic.tagger,
arabic-train.tagger,
chinese-distsim.tagger,
stanford-parser-x.x.x-models.jar...)
e.g.
export STANFORD_MODELS=/usr/share/stanford-postagger-full-2015-01-30/models:/usr/share/stanford-ner-2015-04-20/classifier
相关文章推荐
- 自然语言处理工具 nltk 安装使用
- NuGet,Visual Studio第三方库安装和更新工具
- Python自然语言处理工具NLTK的安装FAQ
- Xcode安装使用第三方库的管理工具CocoaPods
- centos6.5两种方式安装glusterfs以及第三方测试工具
- Xcode安装使用第三方库的管理工具CocoaPods
- 〔转帖〕 在windows命令行将Subversion 安装为windows的服务 〔不需要第三方工具了,安装卸载其他服务也可以用这个命令 sc〕
- 【Python&NLP】Python入门、自然语言处理以及nltk的安装
- Cocoapods第三方管理工具的安装
- 在Mac OS X 通过抓包、“第三方下载工具”加速下载、安装APP或系统
- VHD 多系统安装 无需分区 无需U盘 无需任何第三方工具
- Python第三方工具安装方法
- 第三方库管理工具 cocoapods的介绍和安装
- IDE工具 - VS2012中NuGet安装第三方库
- python安装第三方的包 工具对比
- iOS 管理第三方依赖库工具-CocoaPods安装步骤,环境配置 ruby
- Python3.0 下NLTK工具的安装与配置
- python3.4学习笔记(八) Python第三方库安装与使用,包管理工具解惑
- 二:新浪微博:第三方框架管理工具CocoaPods的安装和使用