Permalink
Browse files

another nltk.Tree -> Tree

  • Loading branch information...
1 parent 846dc93 commit 5378aa9c2deed4d211aea57a0250f7c44803d13a @japerk committed Feb 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 nltk/chunk/util.py
View
@@ -449,7 +449,7 @@ def conlltags2tree(sentence, chunk_types=('NP','PP','VP'),
raise ValueError("Bad conll tag sequence")
else:
# Treat as B-*
- tree.append(nltk.Tree(chunktag[2:], [(word,postag)]))
+ tree.append(Tree(chunktag[2:], [(word,postag)]))
else:
tree[-1].append((word,postag))
elif chunktag == 'O':

0 comments on commit 5378aa9

Please sign in to comment.