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 CenterFile Exchange에서 Language Support에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by