Module Expr Str ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call NameLoad Lambda arguments args defaults Call NameLoad Lambda arguments args defaults Call NameLoad Lambda arguments args defaults Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad NameLoad BinOpAdd NameLoad Str keyword Str Assign AttributeStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str attr Lambda arguments args defaults Str For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body Continue Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assert CompareIn NameLoad NameLoad Call AttributeLoad Str attr NameLoad Assert CompareNotIn NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr CompareNotIn NameLoad NameLoad CompareNotIn NameLoad SubscriptLoad NameLoad Index NameLoad body If CompareEq NameLoad Str body Expr Call NameLoad NameLoad Return SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareEq NameLoad Str body If CompareEq NameLoad Str body Assign NameStore Str If CompareEq NameLoad Str body Assign NameStore Str Return SubscriptLoad Call NameLoad NameLoad NameLoad Index NameLoad decorator_list
N/A N/A 
Interface for converting POS tags from various treebanks
to the universal tagset of Petrov, Das, & McDonald.

The tagset consists of the following 12 coarse tags:

VERB - verbs (all tenses and modes)
NOUN - nouns (common and proper)
PRON - pronouns
ADJ - adjectives
ADV - adverbs
ADP - adpositions (prepositions and postpositions)
CONJ - conjunctions
DET - determiners
NUM - cardinal numbers
PRT - particles or other function words
X - other: foreign words, typos, abbreviations
. - punctuation

@see: http://arxiv.org/abs/1104.2086 and http://code.google.com/p/universal-pos-tags/

 __future__ print_function unicode_literals division collections defaultdict os.path join nltk.data load N/A _UNIVERSAL_DATA taggers/universal_tagset N/A _UNIVERSAL_TAGS N/A VERB NOUN PRON ADJ ADV ADP CONJ DET NUM PRT X . N/A _MAPPINGS N/A defaultdict N/A N/A N/A N/A N/A defaultdict N/A N/A N/A N/A N/A defaultdict N/A N/A N/A N/A UNK _load_universal_map N/A N/A fileid N/A N/A N/A contents N/A load N/A join _UNIVERSAL_DATA N/A fileid .map format text N/A N/A N/A N/A _MAPPINGS N/A fileid N/A universal default_factory N/A N/A N/A N/A X N/A line N/A N/A contents splitlines N/A N/A line N/A N/A line strip N/A N/A line N/A N/A N/A N/A fine coarse N/A N/A line split N/A N/A coarse _UNIVERSAL_TAGS N/A N/A Unexpected coarse tag: {} format coarse N/A N/A fine N/A N/A _MAPPINGS N/A fileid N/A universal N/A N/A Multiple entries for original tag: {} format fine N/A N/A N/A N/A _MAPPINGS N/A fileid N/A universal N/A fine coarse N/A tagset_mapping N/A N/A source target N/A N/A N/A 
    Retrieve the mapping dictionary between tagsets.

    >>> tagset_mapping('ru-rnc', 'universal') == {'!': '.', 'A': 'ADJ', 'C': 'CONJ', 'AD': 'ADV',            'NN': 'NOUN', 'VG': 'VERB', 'COMP': 'CONJ', 'NC': 'NUM', 'VP': 'VERB', 'P': 'ADP',            'IJ': 'X', 'V': 'VERB', 'Z': 'X', 'VI': 'VERB', 'YES_NO_SENT': 'X', 'PTCL': 'PRT'}
    True
     N/A N/A N/A source _MAPPINGS N/A target N/A _MAPPINGS N/A source N/A N/A N/A target universal N/A N/A N/A _load_universal_map source N/A N/A N/A _MAPPINGS N/A source N/A target N/A map_tag N/A N/A source target source_tag N/A N/A N/A 
    Maps the tag from the source tagset to the target tagset.

    >>> map_tag('en-ptb', 'universal', 'VBZ')
    'VERB'
    >>> map_tag('en-ptb', 'universal', 'VBP')
    'VERB'
    >>> map_tag('en-ptb', 'universal', '``')
    '.'
     N/A N/A target universal N/A N/A N/A source wsj N/A N/A source en-ptb N/A N/A source brown N/A N/A source en-brown N/A N/A N/A tagset_mapping source target N/A source_tag N/A