Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 571 Bytes
"""tutorial.AddArticles block template."""
# nickname = xy123
# TODO: make up a unique nickname and edit the previous line
# if you want your results to be listed on the NPFL070 web (under that nickname).
# Delete the line if you don't want to listed on the web.
from udapi.core.block import Block
class AddArticles(Block):
"""Heuristically insert English articles."""
def process_node(self, node):
if node.upos == "NOUN":
the = node.create_child(form="the", lemma="the", upos="DET", deprel="det")