We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a91696 commit 2c64a6cCopy full SHA for 2c64a6c
udapi/block/transform/flatten.py
@@ -2,7 +2,8 @@
2
from udapi.core.block import Block
3
4
class Flatten(Block):
5
- """Apply `node.parent = node.root` on all nodes."""
+ """Apply `node.parent = node.root; node.deprel = 'root'` on all nodes."""
6
7
def process_node(self, node):
8
node.parent = node.root
9
+ node.deprel = 'root'
udapi/block/tutorial/parse.py
@@ -19,3 +19,4 @@ def process_tree(self, root):
19
for node in root.descendants:
20
if node.next_node:
21
node.parent = node.next_node
22
0 commit comments