Hyperparticle / udify

A single model that parses Universal Dependencies across 75 languages. Given a sentence, jointly predicts part-of-speech tags, morphology tags, lemmas, and dependency trees.
https://arxiv.org/abs/1904.02099
MIT License
219 stars 56 forks source link

Fix UdifyPredictor.predict #4

Closed tamuhey closed 4 years ago

tamuhey commented 4 years ago

HI, thanks for this great repo! I modified some lines of code to UdifyPredictor.predict work. For example:

arc = load_archive("logs/udify-model.tar.gz")
p = util.Predictor.from_archive(arc, "udify_predictor")
p.predict("Hello world!")
Hyperparticle commented 4 years ago

Looks like I forgot to add default values in case the annotations were missing, good catch. Thanks for your contribution!