How to use POS tags as the features

1 回表示 (過去 30 日間)
Saugata Bose
Saugata Bose 2019 年 9 月 11 日
編集済み: Saugata Bose 2019 年 9 月 11 日
Hi
I am looking forward to know how could I use POS tags as the features. Adding partOfSpeechDetails after tokenizing the document has tagged every word with its respective POS. But how could I take these tags as the features to fed into a classifier?
As an example, for the sentence, "hello. how are you?", I got the POS details as the following:
Token DocumentNumber SentenceNumber LineNumber Type Language PartOfSpeech
_______ ______________ ______________ __________ ___________ ________ ______________
"hello" 1 1 1 letters en interjection
"." 1 1 1 punctuation en punctuation
"how" 1 2 1 letters en adverb
"are" 1 2 1 letters en auxiliary-verb
"you" 1 2 1 letters en pronoun
"?" 1 2 1 punctuation en punctuation
Now, how could I take the PartOfSpeech columns as a feature for the sentence? And do u shed some light on how many part of speeches are avilable in Matlab?
I am looking for your advice in this regard.
Thanks,

回答 (0 件)

カテゴリ

Help Center および File ExchangeLanguage Support についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by