postag

fun postag(sentence: Array<String>): Array<PennTreebankPOS>

Part-of-speech taggers.

Return

the pos tags.

Parameters

sentence

a sentence that is already segmented to words.


fun String.postag(): Array<PennTreebankPOS>

Returns the (word, part-of-speech) pairs. The text should be a single sentence.