Skip to content

Commit

Permalink
Update to spacy 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aajanki committed May 2, 2022
1 parent 18d8a79 commit d0778ed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 7 additions & 0 deletions download_models.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import os
import subprocess
import sys
import spacy_udpipe
import stanza
import trankit
from uralicNLP import uralicApi

print('Downloading spaCy models...')
subprocess.run(['python', '-m', 'spacy', 'download', 'fi_core_news_sm'], stdout=sys.stdout, check=True)
subprocess.run(['python', '-m', 'spacy', 'download', 'fi_core_news_md'], stdout=sys.stdout, check=True)
subprocess.run(['python', '-m', 'spacy', 'download', 'fi_core_news_lg'], stdout=sys.stdout, check=True)

print('Downloading UDPipe model...')
spacy_udpipe.download('fi-tdt')
spacy_udpipe.download('fi')
Expand Down
1 change: 1 addition & 0 deletions nlpmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ class SpacyCoreFi:
def __init__(self, model_name):
self.name = f'spacy-{model_name}'
self.model_name = model_name
self.tokenizer_is_destructive = False
self.nlp = None

def initialize(self):
Expand Down
5 changes: 1 addition & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ requests==2.27.1
matplotlib==3.5.1
seaborn==0.11.2
spacy-udpipe==1.0.0
spacy==3.3.0.dev0
spacy==3.3.0
https://github.com/aajanki/spacy-fi/releases/download/v0.10.0b1/spacy_fi_experimental_web_md-0.10.0b1-py3-none-any.whl
https://github.com/explosion/spacy-models/releases/download/fi_core_news_sm-3.3.0a0/fi_core_news_sm-3.3.0a0-py3-none-any.whl
https://github.com/explosion/spacy-models/releases/download/fi_core_news_md-3.3.0a0/fi_core_news_md-3.3.0a0-py3-none-any.whl
https://github.com/explosion/spacy-models/releases/download/fi_core_news_lg-3.3.0a0/fi_core_news_lg-3.3.0a0-py3-none-any.whl
voikko==0.5
typer==0.4.1
stanza==1.3.0
Expand Down

0 comments on commit d0778ed

Please sign in to comment.