mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Add descriptions to POS tagging scheme
This commit is contained in:
parent
1570b83ee5
commit
fac3566aac
|
@ -1,136 +1,139 @@
|
||||||
//- 💫 DOCS > API > ANNOTATION > POS TAGS
|
//- 💫 DOCS > API > ANNOTATION > POS TAGS
|
||||||
|
|
||||||
mixin pos-row(...row)
|
+infobox("Tip")
|
||||||
+row
|
| In spaCy v1.8.3+, you can also use #[code spacy.explain()] to get the
|
||||||
each cell in row
|
| description for the string representation of a tag. For example,
|
||||||
+cell
|
| #[code spacy.explain("RB")] will return "adverb".
|
||||||
each item in cell.split(" ")
|
|
||||||
if item
|
+h(3, "pos-tagging-english") English part-of-speech tag scheme
|
||||||
| #[code=item]
|
|
||||||
|
|
||||||
p
|
p
|
||||||
| The part-of-speech tagger uses the
|
| The English part-of-speech tagger uses the
|
||||||
| #[+a("https://catalog.ldc.upenn.edu/LDC2013T19") OntoNotes 5] version of
|
| #[+a("https://catalog.ldc.upenn.edu/LDC2013T19") OntoNotes 5] version of
|
||||||
| the Penn Treebank tag set. We also map the tags to the simpler Google
|
| the Penn Treebank tag set. We also map the tags to the simpler Google
|
||||||
| Universal POS tag set.
|
| Universal POS tag set.
|
||||||
|
|
||||||
+h(3, "pos-tagging-english") English part-of-speech tag scheme
|
+table(["Tag", "POS", "Morphology", "Description"])
|
||||||
|
+pos-row("-LRB-", "PUNCT", "PunctType=brck PunctSide=ini", "left round bracket")
|
||||||
+table(["Tag", "POS", "Morphology"])
|
+pos-row("-PRB-", "PUNCT", "PunctType=brck PunctSide=fin", "right round bracket")
|
||||||
+pos-row("-LRB-", "PUNCT", "PunctType=brck PunctSide=ini")
|
+pos-row(",", "PUNCT", "PunctType=comm", "punctuation mark, comma")
|
||||||
+pos-row("-PRB-", "PUNCT", "PunctType=brck PunctSide=fin")
|
+pos-row(":", "PUNCT", "", "punctuation mark, colon or ellipsis")
|
||||||
+pos-row(",", "PUNCT", "PunctType=comm")
|
+pos-row(".", "PUNCT", "PunctType=peri", "punctuation mark, sentence closer")
|
||||||
+pos-row(":", "PUNCT", "")
|
+pos-row("''", "PUNCT", "PunctType=quot PunctSide=fin", "closing quotation mark")
|
||||||
+pos-row(".", "PUNCT", "PunctType=peri")
|
+pos-row("\"\"", "PUNCT", "PunctType=quot PunctSide=fin", "closing quotation mark")
|
||||||
+pos-row("''", "PUNCT", "PunctType=quot PunctSide=fin")
|
+pos-row("#", "SYM", "SymType=numbersign", "symbol, number sign")
|
||||||
+pos-row("\"\"", "PUNCT", "PunctType=quot PunctSide=fin")
|
+pos-row("``", "PUNCT", "PunctType=quot PunctSide=ini", "opening quotation mark")
|
||||||
+pos-row("#", "SYM", "SymType=numbersign")
|
+pos-row("$", "SYM", "SymType=currency", "symbol, currency")
|
||||||
+pos-row("``", "PUNCT", "PunctType=quot PunctSide=ini")
|
+pos-row("ADD", "X", "", "email")
|
||||||
+pos-row("$", "SYM", "SymType=currency")
|
+pos-row("AFX", "ADJ", "Hyph=yes", "affix")
|
||||||
+pos-row("ADD", "X", "")
|
+pos-row("BES", "VERB", "", 'auxillary "be"')
|
||||||
+pos-row("AFX", "ADJ", "Hyph=yes")
|
+pos-row("CC", "CONJ", "ConjType=coor", "conjunction, coordinating")
|
||||||
+pos-row("BES", "VERB", "")
|
+pos-row("CD", "NUM", "NumType=card", "cardinal number")
|
||||||
+pos-row("CC", "CONJ", "ConjType=coor")
|
+pos-row("DT", "DET", "determiner")
|
||||||
+pos-row("CD", "NUM", "NumType=card")
|
+pos-row("EX", "ADV", "AdvType=ex", "existential there")
|
||||||
+pos-row("DT", "DET", "")
|
+pos-row("FW", "X", "Foreign=yes", "foreign word")
|
||||||
+pos-row("EX", "ADV", "AdvType=ex")
|
+pos-row("GW", "X", "", "additional word in multi-word expression")
|
||||||
+pos-row("FW", "X", "Foreign=yes")
|
+pos-row("HVS", "VERB", "", 'forms of "have"')
|
||||||
+pos-row("GW", "X", "")
|
+pos-row("HYPH", "PUNCT", "PunctType=dash", "punctuation mark, hyphen")
|
||||||
+pos-row("HVS", "VERB", "")
|
+pos-row("IN", "ADP", "", "conjunction, subordinating or preposition")
|
||||||
+pos-row("HYPH", "PUNCT", "PunctType=dash")
|
+pos-row("JJ", "ADJ", "Degree=pos", "adjective")
|
||||||
+pos-row("IN", "ADP", "")
|
+pos-row("JJR", "ADJ", "Degree=comp", "adjective, comparative")
|
||||||
+pos-row("JJ", "ADJ", "Degree=pos")
|
+pos-row("JJS", "ADJ", "Degree=sup", "adjective, superlative")
|
||||||
+pos-row("JJR", "ADJ", "Degree=comp")
|
+pos-row("LS", "PUNCT", "NumType=ord", "list item marker")
|
||||||
+pos-row("JJS", "ADJ", "Degree=sup")
|
+pos-row("MD", "VERB", "VerbType=mod", "verb, modal auxillary")
|
||||||
+pos-row("LS", "PUNCT", "NumType=ord")
|
+pos-row("NFP", "PUNCT", "", "superfluous punctuation")
|
||||||
+pos-row("MD", "VERB", "VerbType=mod")
|
+pos-row("NIL", "", "", "missing tag")
|
||||||
+pos-row("NFP", "PUNCT", "")
|
+pos-row("NN", "NOUN", "Number=sing", "noun, singular or mass")
|
||||||
+pos-row("NIL", "", "")
|
+pos-row("NNP", "PROPN", "NounType=prop Number=sign", "noun, proper singular")
|
||||||
+pos-row("NN", "NOUN", "Number=sing")
|
+pos-row("NNPS", "PROPN", "NounType=prop Number=plur", "noun, proper plural")
|
||||||
+pos-row("NNP", "PROPN", "NounType=prop Number=sign")
|
+pos-row("NNS", "NOUN", "Number=plur", "noun, plural")
|
||||||
+pos-row("NNPS", "PROPN", "NounType=prop Number=plur")
|
+pos-row("PDT", "ADJ", "AdjType=pdt PronType=prn", "predeterminer")
|
||||||
+pos-row("NNS", "NOUN", "Number=plur")
|
+pos-row("POS", "PART", "Poss=yes", "possessive ending")
|
||||||
+pos-row("PDT", "ADJ", "AdjType=pdt PronType=prn")
|
+pos-row("PRP", "PRON", "PronType=prs", "pronoun, personal")
|
||||||
+pos-row("POS", "PART", "Poss=yes")
|
+pos-row("PRP$", "ADJ", "PronType=prs Poss=yes", "pronoun, possessive")
|
||||||
+pos-row("PRP", "PRON", "PronType=prs")
|
+pos-row("RB", "ADV", "Degree=pos", "adverb")
|
||||||
+pos-row("PRP$", "ADJ", "PronType=prs Poss=yes")
|
+pos-row("RBR", "ADV", "Degree=comp", "adverb, comparative")
|
||||||
+pos-row("RB", "ADV", "Degree=pos")
|
+pos-row("RBS", "ADV", "Degree=sup", "adverb, superlative")
|
||||||
+pos-row("RBR", "ADV", "Degree=comp")
|
+pos-row("RP", "PART", "", "adverb, particle")
|
||||||
+pos-row("RBS", "ADV", "Degree=sup")
|
+pos-row("SP", "SPACE", "", "space")
|
||||||
+pos-row("RP", "PART", "")
|
+pos-row("SYM", "SYM", "", "symbol")
|
||||||
+pos-row("SP", "SPACE", "")
|
+pos-row("TO", "PART", "PartType=inf VerbForm=inf", "infinitival to")
|
||||||
+pos-row("SYM", "SYM", "")
|
+pos-row("UH", "INTJ", "", "interjection")
|
||||||
+pos-row("TO", "PART", "PartType=inf VerbForm=inf")
|
+pos-row("VB", "VERB", "VerbForm=inf", "verb, base form")
|
||||||
+pos-row("UH", "INTJ", "")
|
+pos-row("VBD", "VERB", "VerbForm=fin Tense=past", "verb, past tense")
|
||||||
+pos-row("VB", "VERB", "VerbForm=inf")
|
+pos-row("VBG", "VERB", "VerbForm=part Tense=pres Aspect=prog", "verb, gerund or present participle")
|
||||||
+pos-row("VBD", "VERB", "VerbForm=fin Tense=past")
|
+pos-row("VBN", "VERB", "VerbForm=part Tense=past Aspect=perf", "verb, past participle")
|
||||||
+pos-row("VBG", "VERB", "VerbForm=part Tense=pres Aspect=prog")
|
+pos-row("VBP", "VERB", "VerbForm=fin Tense=pres", "verb, non-3rd person singular present")
|
||||||
+pos-row("VBN", "VERB", "VerbForm=part Tense=past Aspect=perf")
|
+pos-row("VBZ", "VERB", "VerbForm=fin Tense=pres Number=sing Person=3", "verb, 3rd person singular present")
|
||||||
+pos-row("VBP", "VERB", "VerbForm=fin Tense=pres")
|
+pos-row("WDT", "ADJ", "PronType=int|rel", "wh-determiner")
|
||||||
+pos-row("VBZ", "VERB", "VerbForm=fin Tense=pres Number=sing Person=3")
|
+pos-row("WP", "NOUN", "PronType=int|rel", "wh-pronoun, personal")
|
||||||
+pos-row("WDT", "ADJ", "PronType=int|rel")
|
+pos-row("WP$", "ADJ", "Poss=yes PronType=int|rel", "wh-pronoun, possessive")
|
||||||
+pos-row("WP", "NOUN", "PronType=int|rel")
|
+pos-row("WRB", "ADV", "PronType=int|rel", "wh-adverb")
|
||||||
+pos-row("WP$", "ADJ", "Poss=yes PronType=int|rel")
|
+pos-row("XX", "X", "", "unknown")
|
||||||
+pos-row("WRB", "ADV", "PronType=int|rel")
|
|
||||||
+pos-row("XX", "X", "")
|
|
||||||
|
|
||||||
+h(3, "pos-tagging-german") German part-of-speech tag scheme
|
+h(3, "pos-tagging-german") German part-of-speech tag scheme
|
||||||
|
|
||||||
+table(["Tag", "POS", "Morphology"])
|
p
|
||||||
+pos-row("$(", "PUNCT", "PunctType=brck")
|
| The German part-of-speech tagger uses the
|
||||||
+pos-row("$,", "PUNCT", "PunctType=comm")
|
| #[+a("http://www.ims.uni-stuttgart.de/forschung/ressourcen/korpora/TIGERCorpus/annotation/index.html") TIGER Treebank]
|
||||||
+pos-row("$.", "PUNCT", "PunctType=peri")
|
| annotation scheme. We also map the tags to the simpler Google
|
||||||
+pos-row("ADJA", "ADJ", "")
|
| Universal POS tag set.
|
||||||
+pos-row("ADJD", "ADJ", "Variant=short")
|
|
||||||
+pos-row("ADV", "ADV", "")
|
+table(["Tag", "POS", "Morphology", "Description"])
|
||||||
+pos-row("APPO", "ADP", "AdpType=post")
|
+pos-row("$(", "PUNCT", "PunctType=brck", "other sentence-internal punctuation mark")
|
||||||
+pos-row("APPR", "ADP", "AdpType=prep")
|
+pos-row("$,", "PUNCT", "PunctType=comm", "comma")
|
||||||
+pos-row("APPRART", "ADP", "AdpType=prep PronType=art")
|
+pos-row("$.", "PUNCT", "PunctType=peri", "sentence-final punctuation mark")
|
||||||
+pos-row("APZR", "ADP", "AdpType=circ")
|
+pos-row("ADJA", "ADJ", "", "adjective, attributive")
|
||||||
+pos-row("ART", "DET", "PronType=art")
|
+pos-row("ADJD", "ADJ", "Variant=short", "adjective, adverbial or predicative")
|
||||||
+pos-row("CARD", "NUM", "NumType=card")
|
+pos-row("ADV", "ADV", "", "adverb")
|
||||||
+pos-row("FM", "X", "Foreign=yes")
|
+pos-row("APPO", "ADP", "AdpType=post", "postposition")
|
||||||
+pos-row("ITJ", "INTJ", "")
|
+pos-row("APPR", "ADP", "AdpType=prep", "preposition; circumposition left")
|
||||||
+pos-row("KOKOM", "CONJ", "ConjType=comp")
|
+pos-row("APPRART", "ADP", "AdpType=prep PronType=art", "preposition with article")
|
||||||
+pos-row("KON", "CONJ", "")
|
+pos-row("APZR", "ADP", "AdpType=circ", "circumposition right")
|
||||||
+pos-row("KOUI", "SCONJ", "")
|
+pos-row("ART", "DET", "PronType=art", "definite or indefinite article")
|
||||||
+pos-row("KOUS", "SCONJ", "")
|
+pos-row("CARD", "NUM", "NumType=card", "cardinal number")
|
||||||
+pos-row("NE", "PROPN", "")
|
+pos-row("FM", "X", "Foreign=yes", "foreign language material")
|
||||||
+pos-row("NNE", "PROPN", "")
|
+pos-row("ITJ", "INTJ", "", "interjection")
|
||||||
+pos-row("NN", "NOUN", "")
|
+pos-row("KOKOM", "CONJ", "ConjType=comp", "comparative conjunction")
|
||||||
+pos-row("PAV", "ADV", "PronType=dem")
|
+pos-row("KON", "CONJ", "", "coordinate conjunction")
|
||||||
+pos-row("PROAV", "ADV", "PronType=dem")
|
+pos-row("KOUI", "SCONJ", "", 'subordinate conjunction with "zu" and infinitive')
|
||||||
+pos-row("PDAT", "DET", "PronType=dem")
|
+pos-row("KOUS", "SCONJ", "", "subordinate conjunction with sentence")
|
||||||
+pos-row("PDS", "PRON", "PronType=dem")
|
+pos-row("NE", "PROPN", "", "proper noun")
|
||||||
+pos-row("PIAT", "DET", "PronType=ind|neg|tot")
|
+pos-row("NNE", "PROPN", "", "proper noun")
|
||||||
+pos-row("PIDAT", "DET", "AdjType=pdt PronType=ind|neg|tot")
|
+pos-row("NN", "NOUN", "", "noun, singular or mass")
|
||||||
+pos-row("PIS", "PRON", "PronType=ind|neg|tot")
|
+pos-row("PAV", "ADV", "PronType=dem", "pronominal adverb")
|
||||||
+pos-row("PPER", "PRON", "PronType=prs")
|
+pos-row("PROAV", "ADV", "PronType=dem", "pronominal adverb")
|
||||||
+pos-row("PPOSAT", "DET", "Poss=yes PronType=prs")
|
+pos-row("PDAT", "DET", "PronType=dem", "attributive demonstrative pronoun")
|
||||||
+pos-row("PPOSS", "PRON", "PronType=rel")
|
+pos-row("PDS", "PRON", "PronType=dem", "substituting demonstrative pronoun")
|
||||||
+pos-row("PRELAT", "DET", "PronType=rel")
|
+pos-row("PIAT", "DET", "PronType=ind|neg|tot", "attributive indefinite pronoun without determiner")
|
||||||
+pos-row("PRELS", "PRON", "PronType=rel")
|
+pos-row("PIDAT", "DET", "AdjType=pdt PronType=ind|neg|tot", "attributive indefinite pronoun with determiner")
|
||||||
+pos-row("PRF", "PRON", "PronType=prs Reflex=yes")
|
+pos-row("PIS", "PRON", "PronType=ind|neg|tot", "substituting indefinite pronoun")
|
||||||
+pos-row("PTKA", "PART", "")
|
+pos-row("PPER", "PRON", "PronType=prs", "non-reflexive personal pronoun")
|
||||||
+pos-row("PTKANT", "PART", "PartType=res")
|
+pos-row("PPOSAT", "DET", "Poss=yes PronType=prs", "attributive possessive pronoun")
|
||||||
+pos-row("PTKNEG", "PART", "Negative=yes")
|
+pos-row("PPOSS", "PRON", "PronType=rel", "substituting possessive pronoun")
|
||||||
+pos-row("PTKVZ", "PART", "PartType=vbp")
|
+pos-row("PRELAT", "DET", "PronType=rel", "attributive relative pronoun")
|
||||||
+pos-row("PTKZU", "PART", "PartType=inf")
|
+pos-row("PRELS", "PRON", "PronType=rel", "substituting relative pronoun")
|
||||||
+pos-row("PWAT", "DET", "PronType=int")
|
+pos-row("PRF", "PRON", "PronType=prs Reflex=yes", "reflexive personal pronoun")
|
||||||
+pos-row("PWAV", "ADV", "PronType=int")
|
+pos-row("PTKA", "PART", "", "particle with adjective or adverb")
|
||||||
+pos-row("PWS", "PRON", "PronType=int")
|
+pos-row("PTKANT", "PART", "PartType=res", "answer particle")
|
||||||
+pos-row("TRUNC", "X", "Hyph=yes")
|
+pos-row("PTKNEG", "PART", "Negative=yes", "negative particle")
|
||||||
+pos-row("VAFIN", "AUX", "Mood=ind VerbForm=fin")
|
+pos-row("PTKVZ", "PART", "PartType=vbp", "separable verbal particle")
|
||||||
+pos-row("VAIMP", "AUX", "Mood=imp VerbForm=fin")
|
+pos-row("PTKZU", "PART", "PartType=inf", '"zu" before infinitive')
|
||||||
+pos-row("VAINF", "AUX", "VerbForm=inf")
|
+pos-row("PWAT", "DET", "PronType=int", "attributive interrogative pronoun")
|
||||||
+pos-row("VAPP", "AUX", "Aspect=perf VerbForm=fin")
|
+pos-row("PWAV", "ADV", "PronType=int", "adverbial interrogative or relative pronoun")
|
||||||
+pos-row("VMFIN", "VERB", "Mood=ind VerbForm=fin VerbType=mod")
|
+pos-row("PWS", "PRON", "PronType=int", "substituting interrogative pronoun")
|
||||||
+pos-row("VMINF", "VERB", "VerbForm=fin VerbType=mod")
|
+pos-row("TRUNC", "X", "Hyph=yes", "word remnant")
|
||||||
+pos-row("VMPP", "VERB", "Aspect=perf VerbForm=part VerbType=mod")
|
+pos-row("VAFIN", "AUX", "Mood=ind VerbForm=fin", "finite verb, auxiliary")
|
||||||
+pos-row("VVFIN", "VERB", "Mood=ind VerbForm=fin")
|
+pos-row("VAIMP", "AUX", "Mood=imp VerbForm=fin", "imperative, auxiliary")
|
||||||
+pos-row("VVIMP", "VERB", "Mood=imp VerbForm=fin")
|
+pos-row("VAINF", "AUX", "VerbForm=inf", "infinitive, auxiliary")
|
||||||
+pos-row("VVINF", "VERB", "VerbForm=inf")
|
+pos-row("VAPP", "AUX", "Aspect=perf VerbForm=fin", "perfect participle, auxiliary")
|
||||||
+pos-row("VVIZU", "VERB", "VerbForm=inf")
|
+pos-row("VMFIN", "VERB", "Mood=ind VerbForm=fin VerbType=mod", "finite verb, modal")
|
||||||
+pos-row("VVPP", "VERB", "Aspect=perf VerbForm=part")
|
+pos-row("VMINF", "VERB", "VerbForm=fin VerbType=mod", "infinitive, modal")
|
||||||
+pos-row("XY", "X", "")
|
+pos-row("VMPP", "VERB", "Aspect=perf VerbForm=part VerbType=mod", "perfect participle, modal")
|
||||||
+pos-row("SP", "SPACE", "")
|
+pos-row("VVFIN", "VERB", "Mood=ind VerbForm=fin", "finite verb, full")
|
||||||
|
+pos-row("VVIMP", "VERB", "Mood=imp VerbForm=fin", "imperative, full")
|
||||||
|
+pos-row("VVINF", "VERB", "VerbForm=inf", "infinitive, full")
|
||||||
|
+pos-row("VVIZU", "VERB", "VerbForm=inf", 'infinitive with "zu", full')
|
||||||
|
+pos-row("VVPP", "VERB", "Aspect=perf VerbForm=part", "perfect participle, full")
|
||||||
|
+pos-row("XY", "X", "", "non-word containing non-letter")
|
||||||
|
+pos-row("SP", "SPACE", "", "space")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user