Skip to content

Commit

Permalink
fixes bug with nlp token not appearing in dictionary. updates depende…
Browse files Browse the repository at this point in the history
…ncies and removes unnecessary ones
  • Loading branch information
kodymoodley committed May 31, 2023
1 parent 8bff19e commit 8e3c197
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ MANIFEST
# virtual environment
nv
venv
flenv/

# Cython generated files
__pycache__
Expand All @@ -34,4 +35,4 @@ Thumbs.db
htmlcov/*
.coverage
.ipynb_checkpoints/
.git
.git
2 changes: 2 additions & 0 deletions orangecontrib/storynavigation/widgets/OWSNDSGTagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,8 @@ def __postag_text(self, text):
sentence = sentence.replace('.', '')

tagged_sentence = self.nlp_nl(sentence)
for token in tagged_sentence:
self.count_per_word[token.text.lower().strip()] = 0
# tagged_sentence = self.merge_punct(tagged_sentence)
sentence_nlp_models.append(tagged_sentence)

Expand Down
29 changes: 11 additions & 18 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
wheel==0.38.4
lxml==4.9.2
PyQt5==5.15.7
PyQtWebEngine==5.15.6
Orange3==3.34.1
Orange3-Text==1.12.0
Orange3-network==1.7.0
pandas==1.5.3
regex==2022.10.31
stanza==1.4.2
spacy==3.4.4
dgl==0.6.1
sphinx==5.3.0
recommonmark==0.7.1
sphinx-rtd-theme==1.1.1
Cython==0.29.33
dhtmlparser3==3.0.17
-e git+https://github.com/kodymoodley/stroll-singlethreaded@master#egg=stroll-srl
PyQt5
PyQtWebEngine
Orange3
Orange3-Text
Orange3-network
pandas
spacy
sphinx
recommonmark
sphinx-rtd-theme
dhtmlparser3

0 comments on commit 8e3c197

Please sign in to comment.