I used Stanford POS Tagger to tag parts of speech in a sentence, i used the following code:
private static MaxentTagger tagger = new MaxentTagger(".../english-left3words-distsim.tagger");
String tags= tagger.tagString(st); //st is a string
That gives a result when words are not compound. But what I want is to get the POS Tag of compound words like "go back", computer science", "picking up".
Any ideas?
According to the documentation for the tagString method
"This method tokenizes the input into words"
Also, the models are trained to identify and tag words (tokens). Suggested solutions :
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.