Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // PoSMap maps pos strings to types PoSMap = map[string]PoS{ "any": ANY, "adj": ADJ, "adv": ADV, "affix": AFFIX, "conj": CONJ, "det": DET, "noun": NOUN, "num": NUM, "pron": PRON, "prt": PRT, "punct": PUNCT, "unknown": UNKN, "verb": VERB, "x": X, } // PoSMap maps pos types to strings PoSMapStr = map[PoS]string{ UNKN: "UNKNOWN", ADJ: "ADJ", ADP: "ADP", ADV: "ADV", CONJ: "CONJ", DET: "DET", NOUN: "NOUN", NUM: "NUM", PRON: "PRON", PRT: "PRT", PUNCT: "PUNCT", VERB: "VERB", X: "X", AFFIX: "AFFIX", } )
Functions ¶
This section is empty.
Types ¶
type PoS ¶
type PoS int
Part of speech
const ( ANY = ADJ | ADP | ADV | AFFIX | CONJ | DET | NOUN | NUM | PRON | PRT | PUNCT | UNKN | VERB | X UNKN PoS = 1 << iota // Unknown X // Other: foreign words, typos, abbreviations ADJ // Adjective ADP // Adposition ADV // Adverb AFFIX // Affix CONJ // Conjunction DET // Determiner NOUN // Noun NUM // Cardinal number PRON // Pronoun PRT // Particle or other function word PUNCT // Punctuation VERB // Verb (all tenses and modes) )
Click to show internal directories.
Click to hide internal directories.