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

Can I load the model using HuggingFace AutoModel ? #24

Closed Hadjerkhd closed 3 years ago

Hadjerkhd commented 3 years ago

Hello,

Is it possible to load the UDify bert-based (udify-bert-tar-gz) model using AutoModel class of HuggingFace library ? When downloading the model, the vocab.txt file was missing , is it the same as bert-multilingual-base ?

Thanks in advance

Hyperparticle commented 3 years ago

The model used in UDify should be bert-base-multilingual-cased, as seen here. This should be downloaded automatically if the code is set up properly.

Hyperparticle commented 3 years ago

To load with AutoModel, I think there might need to be a few modifications made.