From f3ff6b698bc8aae7b730ac84fe6120bc892fe024 Mon Sep 17 00:00:00 2001 From: HosseiN Khademi Khaledi Date: Fri, 16 Dec 2022 02:33:33 +0330 Subject: [PATCH] Nltk (#26) * Update nltk version https://github.com/nltk/nltk/pull/2877 * Remove hazm requirements --- requirements.txt | 1 - tests/performance_testing.py | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 21bbf3e..975d1eb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ tqdm>=4.62.3 spacy>=3.1.3 -hazm>=0.7.0 nltk>=3.8.0 setuptools>=58.1.0 \ No newline at end of file diff --git a/tests/performance_testing.py b/tests/performance_testing.py index 2422e09..cda1f3c 100644 --- a/tests/performance_testing.py +++ b/tests/performance_testing.py @@ -1,12 +1,15 @@ """This module is for compare hazm and this normalizer""" +# pylint: skip-file import time -import hazm from tqdm import tqdm from src import NormalizerBuilder if __name__ == '__main__': + + import hazm + with open('./input.txt', encoding="utf-8") as f: text = f.read() norm = NormalizerBuilder() \