Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
stan-cn-nlp: a API wrapper based on Stanford NLP packages for the convenience of Chinese users
branch: master

This branch is 32 commits behind guokr:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
pom.xml

README.md

stan-cn-nlp

a API wrapper based on Stanford NLP packages for the convenience of Chinese users.

How to play

Please follow below steps to play with:

  • git clone git://github.com/guokr/stan-cn-nlp.git
  • cd stan-cn-nlp
  • mvn package
  • java -Xms1g -Xmx2g -jar target/stan-cn-nlp-0.1.0.jar seg "大江东去浪淘尽"
  • java -Xms1g -Xmx2g -jar target/stan-cn-nlp-0.1.0.jar ner "大江东去浪淘尽"
  • java -Xms1g -Xmx2g -jar target/stan-cn-nlp-0.1.0.jar tag "大江东去浪淘尽"

The API

We use a very simple API to reduce the complexity.

Refer to default configuration(optional):

SegWrapper.defaults;

Loading configuration(optional):

SegWrapper.reload(props, defaults);

Segmenting text:

SegWrapper.segment(text);

NerWrapper and TagWrapper are very similar.

Something went wrong with that request. Please try again.