Skip to content

Commit 8ca27c4

Browse files
committed
add nickname to hw templates
1 parent 9f47307 commit 8ca27c4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

udapi/block/tutorial/addarticles.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
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.
26
from udapi.core.block import Block
37

48
class AddArticles(Block):

udapi/block/tutorial/parse.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,19 @@
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.
1216
from udapi.core.block import Block
1317

1418
class 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:

0 commit comments

Comments
 (0)