Skip to content

Commit 60aec7c

Browse files
committed
🩹 add nltk requirement
1 parent a547768 commit 60aec7c

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pandas = "*"
1818
datasets = "*"
1919
scikit-learn = "*"
2020
tqdm = "*"
21+
nltk = "*"
2122
py-stringmatching="*"
2223
owlready2 = "0.44"
2324
rdflib = "7.1.1"

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ wheel
2323
twine
2424
pytest
2525
py-stringmatching
26+
nltk

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"pandas",
2323
"scikit-learn",
2424
"tqdm",
25+
"nltk",
2526
"py-stringmatching",
2627
"openai==1.56.0",
2728
"owlready2==0.44",

tests/aligners/test_propmatch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
from ontoaligner import ontology, encoder
33
from ontoaligner.aligner import PropMatchAligner
44

5+
import nltk
6+
nltk.download('averaged_perceptron_tagger')
7+
nltk.download('averaged_perceptron_tagger_eng')
8+
59
def test_propmatch_aligner_with_mocked_embeddings():
610
# Prepare dataset
711
task = ontology.PropertyOMDataset(ontology.ProcessingStrategy.NONE)

0 commit comments

Comments
 (0)