Skip to content

The relationship between hugging face and stanza models #994

Answered by AngledLuffa
alesalloum asked this question in Q&A
Discussion options

You must be logged in to vote

Perhaps there's a mismatch between the version of stanza you're using and the model. You can use stanza 1.4.0, or update to the latest dev branch (no breaking changes yet, but no changes that really impact FI, either). Then something like this should work:

import stanza
pipe = stanza.Pipeline(lang='fi', processors='tokenize,ner', package={'ner': 'turku_bert'})
pipe("John työskentelee Stanfordissa")

That should automatically download the correct ner model with bert, at which point you can copy that elsewhere if the purpose for downloading it yourself is to be able to use it offline.

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@alesalloum
Comment options

Comment options

You must be logged in to vote
1 reply
@alesalloum
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by alesalloum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants