Introduction to the use of Hanlp in ubuntu

One of the great benefits of HanLP is the offline open source toolkit. In other words, it not only provides free code to download for free, but also makes the hard-collected dictionaries public. This is a selfless act. When I install, I mainly refer to this blog:
blog.csdn.net/article/details?id=50938796

But this blog mainly introduces how to use hanlp in windows, and ubuntu is linux, so there will be differences. Below I mainly introduce the installation and use of unbuntu.

**Install eclipse **

Enter sudo get-apt install eclipse-platform in the terminal to achieve one-click installation, and then find eclipse in the application

Download hanlp

Visit the official website of hanlp: (http://direction is added by yourself) hanlp.linrunsoft.com/services.html

Download hanlp.jar (program package), data.zip (dictionary library), hanlp.properties (configuration file), and the following is the documentation, you don’t need to download it

When downloading data.zip, the download link is a bit obscure, click on the blue data-for-1.2.11.zip, and Baidu cloud link will appear.

Import jar package

Import hanlp into eclipse, the specific process can refer to the website:

jingyan.baidu.com/article/ca41422fc76c4a1eae99ed9f.html

Import configuration file

Copy hanlp.propertie to the bin directory of the project and modify the path of the dictionary

Modify the path of root to the path where data is saved (remember to unzip data)

Programming code demonstration

operation result:

Author: Quincy1994

Recommended Posts

Introduction to the use of Hanlp in ubuntu
How to use hanlp in ubuntu
Ubuntu basic settings: introduction to the installation and use of openssh-server
Use of Anaconda in Ubuntu
How to understand the introduction of packages in Python
Common exceptions and solutions in the use and development of Ubuntu system
Detailed explanation of the installation and use of SSH in the Ubuntu environment
How to use the round function in python
How to configure TensorFlow use environment in Ubuntu
Summary of methods to use Evernote under Ubuntu 14.04
How to use the zip function in Python
Use the command to solve the Ubuntu projector problem:
Use supervisor in ubuntu
How to use dpkg command in Ubuntu system
How to use the format function in python
How to open the ubuntu system in win10
The road to reinstallation of ubuntu 18.04 from scratch
The use of crontab for ubuntu scheduled tasks
The consequences of uninstalling python in ubuntu, very
Installation and use of SSH in Ubuntu environment
Use the command line to detect the Ubuntu version method
How to turn the language of Ubuntu into Chinese? ?
Use Cobbler to automate batch deployment of CentOS / Ubuntu
Installation and use of GDAL in Python under Ubuntu
How to use Putty to log in to ubuntu installed in VirtualBox
Example of how to modify ip address in Ubuntu20.04
Solution to the slow speed of ubuntu18.04 wireless network
Use of mediawiki under ubuntu
Use virtualbox to deploy ubuntu
How to control the ubuntu system in win10 through ssh
Mac uses vnc to remotely log in to the ubuntu16.04 desktop
How to find the area of a circle in python
Detailed steps to automatically set the line number in ubuntu16.04
The usage of wheel in python
How to install Helm in Ubuntu
Happy installation of Jenkins in ubuntu
Use of Pandas in Python development
Use disk quota in ubuntu multi-user
Detailed use of nmcli in CentOS8
How to install mysql in Ubuntu 14.04
Overview of the Ubuntu file system
What is the use of Python
How to install mysql in Ubuntu 14.04
Steps to upgrade Laravel 5.4 to 5.6 in Ubuntu 16.04
The usage of tuples in python
How to use SQLite in Python
Detailed steps to install MySQL to change the default password in Ubuntu
The processing of the ubuntu snapd process continuously writing to the hard disk
How to extend the root directory of LVM under Ubuntu system
How to fix the problem of missing system settings on Ubuntu 14.04
What is the use of python's pip
Solution to ubuntu unable to surf the Internet after plugging in the network cable
How to easily compile openJDK in Ubuntu
ubuntu16.04 method steps to upgrade the kernel
Use mendeley to insert references under ubuntu
The usage of Ajax in Python3 crawler
Detailed explanation of the use of pip in Python | summary of third-party library installation
How to expand the ubuntu LVM partition of a VirtualBox virtual machine
How to install cuda10.1 driver in Ubuntu
How to add users to Sudoers in Ubuntu
How to delete redundant kernels in Ubuntu