Skip to content

Commit

Permalink
Merge pull request #499 from NatLibFi/update-dependencies-v0.53
Browse files Browse the repository at this point in the history
Update dependencies v0.53
  • Loading branch information
juhoinkinen authored Jun 21, 2021
2 parents 0fe6557 + 1b3b786 commit 13cd15b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
Expand Down
9 changes: 7 additions & 2 deletions annif/backend/tfidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@

import os.path
import tempfile
import gensim.similarities
from gensim.matutils import Sparse2Corpus
import annif.util
from annif.suggestion import VectorSuggestionResult
from annif.exception import NotInitializedException, NotSupportedException
from . import backend
from . import mixins

# Filter UserWarnings due to not-installed python-Levenshtein package
import warnings
with warnings.catch_warnings():
warnings.simplefilter('ignore')
import gensim.similarities
from gensim.matutils import Sparse2Corpus


class SubjectBuffer:
"""A file-backed buffer to store and retrieve subject text."""
Expand Down
16 changes: 8 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,25 @@ def read(fname):
'swagger_ui_bundle',
'flask',
'flask-cors',
'click==7.1.*',
'click==8.0.*',
'click-log',
'joblib==0.17.0',
'joblib==1.0.1',
'nltk',
'gensim==3.8.*',
'gensim==4.0.*',
'scikit-learn==0.24.2',
'scipy==1.5.3',
'scipy==1.5.4',
'rdflib>=4.2,<6.0',
'gunicorn',
'numpy==1.18.*',
'optuna==2.2.0',
'numpy==1.19.*',
'optuna==2.8.0',
'stwfsapy==0.2.*'
],
tests_require=['py', 'pytest', 'requests'],
extras_require={
'fasttext': ['fasttext==0.9.2'],
'voikko': ['voikko'],
'vw': ['vowpalwabbit==8.8.1'],
'nn': ['tensorflow-cpu==2.3.1', 'lmdb==1.0.0'],
'vw': ['vowpalwabbit==8.10.2'],
'nn': ['tensorflow-cpu==2.5.0', 'lmdb==1.2.1'],
'omikuji': ['omikuji==0.3.*'],
'yake': ['yake==0.4.5'],
'dev': [
Expand Down

0 comments on commit 13cd15b

Please sign in to comment.