Package nltk :: Package tag :: Module simplify
[hide private]
[frames] | no frames]

Module simplify

source code

Functions [hide private]
    Brown
 
simplify_brown_tag(tag) source code
    Wall Street Journal tags (Penn Treebank)
 
simplify_wsj_tag(tag) source code
 
simplify_indian_tag(tag) source code
    Alpino tags
 
simplify_alpino_tag(tag) source code
    Default tag simplification
 
simplify_tag(tag) source code
Variables [hide private]
    Brown
  brown_mapping1 = {'a': 'DET', 'b': 'V', 'cc': 'CNJ', 'cd': 'NU...
  brown_mapping2 = {'vb': 'V', 'vbd': 'VD', 'vbg': 'VG', 'vbn': ...
    Wall Street Journal tags (Penn Treebank)
  wsj_mapping = {'-lcb-': '(', '-lrb-': '(', '-lsb-': '(', '-non...
  indian_mapping = {'"cc': 'CNJ', 'cc': 'CNJ', 'dem': 'DET', 'in...
    Alpino tags
  alpino_mapping = {'name': 'NP', 'noun': 'N', 'prep': 'P', 'pro...
Variables Details [hide private]

brown_mapping1

Value:
{'a': 'DET',
 'b': 'V',
 'cc': 'CNJ',
 'cd': 'NUM',
 'cs': 'CNJ',
 'd': 'V',
 'e': 'EX',
 'f': 'FW',
...

brown_mapping2

Value:
{'vb': 'V', 'vbd': 'VD', 'vbg': 'VG', 'vbn': 'VN'}

wsj_mapping

Value:
{'-lcb-': '(',
 '-lrb-': '(',
 '-lsb-': '(',
 '-none-': '',
 '-rcb-': ')',
 '-rrb-': ')',
 '-rsb-': ')',
 'bes': 'V',
...

indian_mapping

Value:
{'"cc': 'CNJ',
 'cc': 'CNJ',
 'dem': 'DET',
 'intf': 'INTF',
 'jj': 'ADJ',
 'jj:?': 'ADJ',
 'jvb': 'ADJ',
 'neg': 'NEG',
...

alpino_mapping

Value:
{'name': 'NP',
 'noun': 'N',
 'prep': 'P',
 'pron': 'PRO',
 'punct': '.',
 'verb': 'V',
 'vg': 'VG'}