【毕业设计day05_3】词性标注_思路

这篇博客介绍了如何在毕业设计中运用TreeTagger进行词性标注。首先,从C盘遍历查找TreeTagger目录,如果不存在则复制。接着,通过控制台命令行调用TreeTagger的tag-english进行英文词性标注。具体步骤包括:运行cmd命令,指定TreeTagger的bin路径,然后输入两个参数,分别指向原始文本和标注后的文件路径。最后,通过Executor执行命令完成词性标注过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

词性标注_思路

从控制台调用TreeTagger并进行词性标注

1. 从C盘遍历列表,找到TreeTagger目录,不存在则copyFolder

2. 控制台命令:

a) cmd: 

cmd /k C:\TreeTagger\bin\tag-english 

b) Cmd1: 

E:\Workspaces\extractLexicon1119\workfiles\corpus\lang1-utf8  E:\Workspaces\extractLexicon1119\workfiles\corpus\lang1-utf8.pos

c) Cmd2: 

E:\Workspaces\extractLexicon1119\workfiles\corpus\lang2-utf8  E:\Workspaces\extractLexicon1119\workfiles\corpus\lang2-utf8.pos

3.  进行词性标注:解析cmdcommandLineExecutor调用execute方法,执行commandLine

 

TreeTagger文本标注 附录二 TreeTagger 赋码集 (TreeTagger tagset) CC Coordinating conjunction CD Cardinal number DT Article and determiner EX Existential there FW Foreign word IN Preposition or subordinating conjunction JJ Adjective JJR Comparative adjective JJS Superlative adjective LS List item marker MD Modal verb NN Common noun, singular or mass NNS Common noun, plural NP Proper noun, singular NPS Proper noun, plural PDT Predeterminer POS Possessive ending PP Personal pronoun PP$ Possessive pronoun RB Adverb RBR Comparative adverb RBS Sup erlative adverb RP Particle SYM Symbol TO to UH Exclamation or interjection VB BE verb, base form (be) VBD Past tense verb of BE (was, were) VBG Gerund or present participle of BE verb (being) VBN Past participle of BE verb (been) VBP Present tense (other than 3rd person singular) of BE verb (am, are) VBZ Present tense (3rd person singular) of BE verb (is) VD DO verb, base form (do) VDD Past tense verb of DO (did) VDG Gerund or present participle of DO verb (doing) VDN Past participle of DO verb (done) VDP Present tense (other than 3rd person singular) of DO verb (do) VDZ Present tense (3rd person singular) of DO verb (does) VH HAVE verb, base form (have) VHD Past tense verb of HAVE (had) VHG Gerund or present participle of HAVE verb (having) VHN Past participle of HAVE verb (had) VHP Present tense (other than 3rd person singular) of HAVE verb (have) VHZ Present tense (3rd person singular) of HAVE verb (has) VV Lexical verb, base form (e.g. live) VVD Past tense verb of lexical verb (e.g. lived) VVG Gerund or present participle of lexical verb (living) VVN Past participle of lexical verb (lived, shown) VVP Present tense (other than 3rd person singular) of lexical verb (live) VVZ Present tense (3rd person singular) of lexical verb (lives) WDT Wh-determiner WP Wh-pronoun WP$ Possessive wh-pronoun WRB Wh-adverb
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值