Joke Collection Website - Public benefit messages - Nodejs uses Jieba participle.
Nodejs uses Jieba participle.
Npm installation node -jieba
document
Tell me about the problems I encountered during the installation. At first, I kept reporting errors, but it still didn't work. Then I upgraded python2.6.6 of centos6.3 to 2.7.3 and pip to the corresponding version in the document (1.3. 1), and then I installed it.
After installation, enter the node-jieba directory under node_modules in the project directory and run the install.sh statement as follows:
CD. /node_modules/node-jieba
sudo bash。 /install.sh
The specific usage document is very clear, and it should be noted that when running to
var analyzer = Jieba ({
Debugging: true
});
The python program of the plug-in will be started and can be used after use.
Analyzer. Close ()
Close python programs, but it takes time to start them, especially on low-performance computers (mine is the lowest-configured server in Alibaba Cloud, lasting 9.9 months). If you turn it off every time you use it, there will be a delay of about 1 second, and the experience will be affected. But it is always on, for fear of affecting the performance of the server. So just try it yourself and choose the way that suits you.
- Previous article:Sun Tzu's greetings on the Double Ninth Festival
- Next article:Happy Teacher's Day, SMS greetings.
- Related articles
- Ask for a thank-you note for the teacher?
- What is the activation code of Blue Moon Premium Rebate Edition?
- Does the 2022 Spring Festival Expressway need a nucleic acid test report? Requirements for high-speed nucleic acid detection.
- How to open a long short message from scratch
- How to send WeChat group messages?
- The headmaster's Teacher's Day message
- What should I do if the credit card is reminded of the card specification?
- How does Ping An Bank add loans?
- What is 5G? What can 5G do? What will 5G bring in the future?
- How do Anhui users open random response service?