Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nltk version #25

Merged
merged 1 commit into from Dec 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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)