Skip to content

Commit

Permalink
Update nltk version (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
hosseinkhaledi committed Dec 15, 2022
1 parent 4e9e97e commit 64efbac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
@@ -1,5 +1,5 @@
tqdm>=4.62.3
spacy>=3.1.3
hazm>=0.7.0
nltk>=3.2.0
nltk>=3.8.0
setuptools>=58.1.0
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -19,7 +19,7 @@
"Normalization",
],
url="https://github.com/arushadev/piraye",
version="0.1.4",
version="0.1.5",
package_dir={"piraye": "src"},
packages=["piraye"],
package_data={"piraye": ["data/*/*.json"]},
Expand Down
6 changes: 6 additions & 0 deletions tests/test_normalizer.py
@@ -1,6 +1,7 @@
# testing Fibonacci number function
# pylint: skip-file

from ..src import NltkTokenizer
from ..src import NormalizerBuilder


Expand Down Expand Up @@ -46,3 +47,8 @@ def test_quotes():
norm = NormalizerBuilder().digit_en().punctuation_en().alphabet_fa() \
.tokenizing().remove_extra_spaces().build()
norm.normalize(text)


def test_normalizer():
tokens = NltkTokenizer().word_tokenize('\'\'Y\'"')
print(tokens)

0 comments on commit 64efbac

Please sign in to comment.