PNL Genere un árbol de análisis en Python
from nltk.data import find
from bllipparser import RerankingParser
model_dir = find('models/bllip_wsj_no_aux').path
parser = RerankingParser.from_unified_model_dir(model_dir)
best = parser.parse("John is writing a letter with his pen in my room")
print(best.get_reranker_best())
print(best.get_parser_best())
Sparkling Stag