SentenceParseNew : Parts Of Speech tagger

版本 1.0.0.0 (4.6 KB) 作者: Samyukta Ramnath
Takes a sentence as input and returns the POS tag for each word
712.0 次下载
更新时间 2013/7/19

查看许可证

Requirements :
1) function checker_first : user written
2) function checker_rest : user written
3) function most_prob : user written
4) TrainingDataSPNew
All these files are also available.

The program takes a string as input from the user, and returns the Parts Of Speech tag for every word in the sentence. It relies on the Training Data in TrainingDataSPNew, which is updated every time the sentence has been tagged (after the user confirms the tags, to prevent mistagging). It uses a Bigram model where the most probable tag for a word is calculated based on the tags present in the training data for that word, and also based on the tag of the word before the word in concern, in the input sentence. For example, as we know, a noun is usually preceded by an article, so if given a new noun (not in the training data), the program sees that the word preceding it was an article and so tags the word as a noun.
If any queries, errors or suggestions, do mail me at samyuktaramnath[at]gmail[dot]com, or at hale2bopp[at]gmail[dot]com.

引用格式

Samyukta Ramnath (2024). SentenceParseNew : Parts Of Speech tagger (https://www.mathworks.com/matlabcentral/fileexchange/42745-sentenceparsenew-parts-of-speech-tagger), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2012a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 String Parsing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0