MCPcopy Create free account
hub / github.com/clips/pattern / parole2penntreebank

Function parole2penntreebank

pattern/text/es/__init__.py:134–138  ·  view source on GitHub ↗

Converts a Parole tag to a Penn Treebank II tag. For example: importantísimo/AQ => importantísimo/ADJ

(token, tag)

Source from the content-addressed store, hash-verified

132}
133
134def parole2penntreebank(token, tag):
135 """ Converts a Parole tag to a Penn Treebank II tag.
136 For example: importantísimo/AQ => importantísimo/ADJ
137 """
138 return (token, parole.get(tag, tag))
139
140def parole2universal(token, tag):
141 """ Converts a Parole tag to a universal tag.

Callers 2

parole2universalFunction · 0.85
find_tagsMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…