File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 11"""tutorial.AddArticles block template."""
2+ # nickname = xy123
3+ # TODO: make up a unique nickname and edit the previous line
4+ # if you want your results to be listed on the NPFL070 web (under that nickname).
5+ # Delete the line if you don't want to listed on the web.
26from udapi .core .block import Block
37
48class AddArticles (Block ):
Original file line number Diff line number Diff line change 99 util.MarkDiff gold_zone=gold \
1010 write.TextModeTreesHtml marked_only=1 files=parse-diff.html
1111"""
12+ # nickname = xy123
13+ # TODO: make up a unique nickname and edit the previous line
14+ # if you want your results to be listed on the NPFL070 web (under that nickname).
15+ # Delete the line if you don't want to listed on the web.
1216from udapi .core .block import Block
1317
1418class Parse (Block ):
1519 """Dependency parsing."""
1620
21+ def __init__ (self , language = 'en' , ** kwargs ):
22+ super ().__init__ (** kwargs )
23+ self .language = language
24+
1725 def process_tree (self , root ):
1826 # TODO: Your task: implement a better heuristics than "right chain"
1927 for node in root .descendants :
You can’t perform that action at this time.
0 commit comments