Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App.py needs to be updated #2

Open
freke70 opened this issue Jun 15, 2020 · 1 comment
Open

App.py needs to be updated #2

freke70 opened this issue Jun 15, 2020 · 1 comment

Comments

@freke70
Copy link

freke70 commented Jun 15, 2020

huggingface/transformers#2392

This is the new location for the huggingface library:
https://huggingface.co/dbmdz/bert-large-cased-finetuned-conll03-english

After making this alteration I got it working:

LANGUAGE = st.sidebar.radio("Language",["english","dutch"],0)
if LANGUAGE == "english":
MODEL_PATH = "./dbmdz/bert-large-cased-finetuned-conll03-english"
elif LANGUAGE == "dutch":
MODEL_PATH = "./data/wietsedv/bert-base-dutch-cased"
else:
raise NotImplementedError(f"Unsupported language ({LANGUAGE}) expected 'english' or 'dutch'.")

@hgrif
Copy link
Member

hgrif commented Jun 16, 2020

Thanks for filing the issue, much appreciated!

I believe we forgot to add the download instructies (and I spotted a missing dependency in the setup.py). It should hopefully be fixed after @RensDimmendaal merges these PRs: #3 and #4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants