Simple application of Fudan FNLP Natural Language Processing tool (i)

Source: Internet
Author: User

FNLP is a development toolkit for Chinese Natural language text processing based on machine learning, FNLP is primarily a toolkit developed for Chinese natural language processing, and also includes machine learning algorithms and datasets for implementing these tasks.

----------Baidu Encyclopedia

  • Information retrieval text Classification news Clustering
  • Chinese processing: Chinese word-of-speech tagging entity name recognition keyword extraction dependent syntactic analysis time phrase recognition
  • Structured Learning: Online learning Hierarchical classification clustering

Before you look at this article, make sure that Eclipse is installed, and if you do not install eclipse, see here the JSP environment installation

Because FNLP already has a very detailed introductory tutorial on GitHub, I'm just going to write down the order, the main points and the places to note in these tutorials:

FNLP Project on GitHub address: Chinese Natural Language Processing Toolkit Toolkit for Chinese Natural Language Processing (formerly FUDANNLP)

First, download the latest FNLP version of the file, click here ....... ........... :) IE browser may not be able to move.

Look down for a link to the Getting Started tutorial

There are two introductory tutorials, and I feel that the only useful part of the second tutorial is an article that describes the Eclipse installation Maven plugin, where: Eclipse installs the Maven plugin

Maven and Maven plugins I've uploaded to the network, this is the address Maven network file.

Now simply test your environment configuration has not succeeded, open cmd, enter java-version javac-version respectively mvn-version



In this step may be the problem of students, prompted no java_home variable, enter the computer system Properties-environment variables, the new system variable Java_home, the variable value of JAVA/JDK installation directory, Java installation directory under CMD can be used in Java- Verbose view

The last line address is your JAVA installation address, take my computer as an example, Java_home variable name is C:\Program files\java\jdk1.8.0_20


OK, now the environment has been configured, in fact, there are some steps I also learn from the first tutorial, now start to see the first FNLP introductory tutorial:


For convenience, the official model files, two jar package links are directly posted here http://pan.baidu.com/s/1D7CVc, note that the jar package only need to download trove and commons-cli two.

Next, follow the tutorials.

CMD into the FNLP source directory, such as my fnlp file placed under E:/FNLP,

Execute the above command: MVN install-dmaven.test.skip=true, compiling FNLP

The next is much simpler, but pay attention to the official tutorial in the command line call, the package and packet interval: number, Windows users to change; Number, in English state.

In the Eclipse Project reference FNLP, you need to be aware that a new Java project, if not found, note the upper right corner

Then just follow the first tutorial on GitHub.

In fact, a lot of the official has already explained, well, first thank you FNLP project team members!!! Here are a few common error solutions (Baidu, verified)


One, the command line execution error model file version errors


The model file with the network disk is good, this kind of mistake is because your model file and the FNLP version number does not match, the network disk is always the newest


Second, the command line error cannot find or cannot load the main class


First make sure your system variables are configured correctly, Path,classpath and Java_home

The correct configuration of system variables is similar

Just replace the java_home with your JDK directory.


Third, if the error is null pointer exception, how can not check the code error, or simply cmd execution but still report null pointer exception

Well, congratulations, it is estimated that there is a problem with the source file, welcome Dabigatran 253541693, report Administrator.

Four, whether it is MAVEN,FNLP or JDK, installation directory do not use Chinese, otherwise strange problems came. Although, my is the English path.

Because I also just know the FNLP, in the installation of the use of the process encountered a problem, also took a detour, so specifically will install the use of the process of detailed finishing, hope to be able to use FNLP students to help!

Finally, we welcome the students who have the wrong problem to discuss together and make progress together. Reprint please indicate from Ningxiang Lei.

Simple application of Fudan FNLP Natural Language Processing tool (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.