当前位置:网站首页>Meaning of Jieba participle part of speech tagging
Meaning of Jieba participle part of speech tagging
2022-06-25 08:28:00 【Happy little yard farmer】
Part of speech tagging of stuttering participles
The default mode is to use jieba.posseg.cut(), Include 24 POS Tags ( Lowercase letters ).
paddle There are more patterns 4 Proper name category labels ( Capital ).
jieba.posseg.POSTokenizer(tokenizer=None)Create a new custom word splitter ,tokenizer Parameter to specify the internal use ofjieba.TokenizerWord segmentation is .jieba.posseg.dtLabel the word breaker for the default part of speech .- Mark the part of speech of each word after sentence segmentation , Adopt and ictclas Compatible notation .
- except jieba Default segmentation mode , Provide paddle Part of speech tagging function under the mode .paddle The mode uses delayed loading , adopt
enable_paddle()install paddlepaddle-tiny, also import Related codes ; - Usage examples
>>> import jieba
>>> import jieba.posseg as pseg
>>> words = pseg.cut(" I love tian 'anmen square in Beijing ") #jieba The default mode
>>> jieba.enable_paddle() # start-up paddle Pattern . 0.40 We started to support , Earlier versions did not support
>>> words = pseg.cut(" I love tian 'anmen square in Beijing ",use_paddle=True) #paddle Pattern
>>> for word, flag in words:
... print('%s %s' % (word, flag))
...
I r
Love v
Beijing ns
The tiananmen square ns
Welcome to my official account. 【SOTA Technology interconnection 】, I will share more dry goods .

边栏推荐
- 什么是SKU和SPU,SKU,SPU的区别是什么
- 软件工程复习题
- iframe简单使用 、获取iframe 、获取iframe 元素值 、iframe获取父页面的信息
- Software engineering review questions
- Allgero reports an error: program has encoded a problem and must exit The design will be saved as a . SAV file
- CVPR 2022 oral 2D images become realistic 3D objects in seconds
- 六月集训(第25天) —— 树状数组
- Deep learning series 48:deepfaker
- [supplementary question] 2021 Niuke summer multi school training camp 9-N
- 35岁腾讯员工被裁员感叹:北京一套房,存款700多万,失业好焦虑
猜你喜欢

物联网毕设(智能灌溉系统 -- Android端)

linux中的mysql有10061错误怎么解决

Electronics: Lesson 009 - Experiment 7: study relays

417 sequence traversal of binary tree 1 (102. sequence traversal of binary tree, 107. level traversal of binary tree II, 199. right view of binary tree, 637. layer average of binary tree)

Super simple case: how to do hierarchical chi square test?

Mr. Tang's lecture on operational amplifier (Lecture 7) -- Application of operational amplifier

How is the ISM model analyzed?

Quickly build a real-time face mask detection system in five minutes (opencv+paddlehub with source code)

Data-centric vs. Model-centric. The Answer is Clear!

Talk about the future of cloud native database
随机推荐
How to calculate the D value and W value of statistics in normality test?
After using the remote control of the working machine, problems occurred in the use of the local ROS, and the roscore did not respond
leetcode.13 --- 罗马数字转整数
420 sequence traversal of binary tree 2 (429. sequence traversal of n-ary tree, 515. find the maximum value in each tree row, 116. fill in the next right node pointer of each node, 104. maximum depth
How to calculate the characteristic vector, weight value, CI value and other indicators in AHP?
第五天 脚本与UI系统
每日刷题记录 (三)
Log in to MySQL 5.7 under ubuntu18 and set the root password
How to do factor analysis? Why should data be standardized?
How to analyze the coupling coordination index?
Scanpy(七)基于scanorama整合scRNA-seq实现空间数据分析
面试前准备好这些,Offer拿到手软,将军不打无准备的仗
TCP acceleration notes
Scanpy (VII) spatial data analysis based on scanorama integrated scrna seq
物联网毕设(智能灌溉系统 -- Android端)
417 sequence traversal of binary tree 1 (102. sequence traversal of binary tree, 107. level traversal of binary tree II, 199. right view of binary tree, 637. layer average of binary tree)
How to analyze the grey prediction model?
家庭服务器门户Easy-Gate
Can I grant database tables permission to delete column objects? Why?
使用pytorch搭建MobileNetV2并基于迁移学习训练