Skip to content

Commit

Permalink
removed spacy models from pyproject.toml as they cannot be used as de…
Browse files Browse the repository at this point in the history
…pendencies
  • Loading branch information
omri374 committed Dec 1, 2024
1 parent 4a2d95d commit 281c159
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,15 @@ To install the package:
pip install poetry
poetry install --with=dev

# Download tge spaCy pipeline used for tokenization
poetry run python -m spacy download en_core_web_sm

# To install with all additional NER dependencies (e.g. Flair, Stanza), run:
# poetry install --with='ner,dev'

# To use the default Presidio configuration, a spaCy model is required:
poetry run python -m spacy download en_core_web_lg

# Verify installation
pytest
```
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ xmltodict = "^0.12.0"
python-dotenv = "^1.0.0"
plotly= "^5.24.0"
azure-ai-textanalytics = "^5.3.0"
en_core_web_sm = {url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0.tar.gz"}
en_core_web_lg = {url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_lg-3.8.0/en_core_web_lg-3.8.0.tar.gz"}

# optional dependencies for the different NLP approaches
[tool.poetry.group.ner]
Expand Down

0 comments on commit 281c159

Please sign in to comment.