-
Notifications
You must be signed in to change notification settings - Fork 35
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
RFC: Use stanza model for Finnish #255
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ RUN apt-get update -y \ | |
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install torch --index-url https://download.pytorch.org/whl/cpu | ||
|
||
RUN pip install -U --no-cache-dir \ | ||
setuptools \ | ||
wheel \ | ||
|
@@ -22,6 +24,8 @@ RUN pip install -U --no-cache-dir \ | |
bottle \ | ||
#spacy | ||
spacy \ | ||
#stanza integration for spacy | ||
stanza \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I propose to remove it, since there are at least two issues with the
Also, doing lemmatization using stanza directly is straightforward, see #255 (comment). The code in this PR should be changed a bit to make it work. Currently, it is broken, since I wanted to check the image size and did not care about usable LinguaCafe at this stage). |
||
#chinese reading | ||
pinyin \ | ||
#subtitle file parser | ||
|
@@ -33,7 +37,6 @@ RUN python3 -m spacy download de_core_news_sm \ | |
&& python3 -m spacy download nb_core_news_sm \ | ||
&& python3 -m spacy download es_core_news_sm \ | ||
&& python3 -m spacy download nl_core_news_sm \ | ||
&& python3 -m spacy download fi_core_news_sm \ | ||
&& python3 -m spacy download fr_core_news_sm \ | ||
&& python3 -m spacy download it_core_news_sm \ | ||
&& python3 -m spacy download sv_core_news_sm \ | ||
|
@@ -48,5 +51,6 @@ RUN python3 -m spacy download de_core_news_sm \ | |
&& python3 -m spacy download pt_core_news_sm \ | ||
&& python3 -m spacy download ro_core_news_sm \ | ||
&& python3 -m spacy download sl_core_news_sm \ | ||
&& python3 -m spacy download xx_ent_wiki_sm | ||
&& python3 -m spacy download xx_ent_wiki_sm \ | ||
&& python3 -c 'import stanza; stanza.download("fi", processors="tokenize,mwt,lemma")' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment about stanza and NVIDIA drivers is needed here.