Skip to content

Commit

Permalink
Merge pull request #23 from jimwhite/BLLIP_MASTER
Browse files Browse the repository at this point in the history
NLTK API tweakage.
  • Loading branch information
dmcc committed Oct 28, 2014
2 parents 00f74ae + c5aef95 commit 3487547
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion python/bllipparser/ParsingShell.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,17 @@
import nltk.tree
try:
import nltk.draw.tree
have_tree_drawing = True
have_tree_drawing = False
read_nltk_tree = nltk.tree.Tree.parse
have_tree_drawing = True
except ImportError:
have_tree_drawing = False
except AttributeError:
try:
read_nltk_tree = nltk.tree.Tree.fromstring
have_tree_drawing = True
except AttributeError:
have_tree_drawing = False

from bllipparser.RerankingParser import RerankingParser

Expand Down

0 comments on commit 3487547

Please sign in to comment.