Skip to content

Commit

Permalink
Sanitize node labels in get_nps_from_treebank.py
Browse files Browse the repository at this point in the history
  • Loading branch information
evelinacs committed Jul 31, 2018
1 parent 18440bf commit cb27847
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exp/alto/tools/get_nps_from_treebank.py
Expand Up @@ -5,6 +5,7 @@
from common import sanitize_word

def sanitize_tree(tree):
tree.set_label(sanitize_word(tree.label()))
if tree.height() == 2: #word, pos
tree[0] = sanitize_word(tree[0]) #tree[0] == word
else:
Expand Down

0 comments on commit cb27847

Please sign in to comment.