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

Function wotan2universal

pattern/text/nl/__init__.py:94–100  ·  view source on GitHub ↗

Converts a WOTAN tag to a universal tag. For example: bokkenrijders/N(soort,mv,neut) => bokkenrijders/NOUN

(token, tag)

Source from the content-addressed store, hash-verified

92 return (token, tag)
93
94def wotan2universal(token, tag):
95 """ Converts a WOTAN tag to a universal tag.
96 For example: bokkenrijders/N(soort,mv,neut) => bokkenrijders/NOUN
97 """
98 if tag.startswith("Adv"):
99 return (token, ADV)
100 return penntreebank2universal(*wotan2penntreebank(token, tag))
101
102ABBREVIATIONS = set((
103 "a.d.h.v.", "afb.", "a.u.b.", "bv.", "b.v.", "bijv.", "blz.", "ca.", "cfr.", "dhr.", "dr.",

Callers 1

find_tagsMethod · 0.85

Calls 2

penntreebank2universalFunction · 0.90
wotan2penntreebankFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…