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

Function stts2penntreebank

pattern/text/de/__init__.py:146–150  ·  view source on GitHub ↗

Converts an STTS tag to a Penn Treebank II tag. For example: ohne/APPR => ohne/IN

(token, tag)

Source from the content-addressed store, hash-verified

144}
145
146def stts2penntreebank(token, tag):
147 """ Converts an STTS tag to a Penn Treebank II tag.
148 For example: ohne/APPR => ohne/IN
149 """
150 return (token, stts.get(tag, tag))
151
152def stts2universal(token, tag):
153 """ Converts an STTS tag to a universal tag.

Callers 2

stts2universalFunction · 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…