nlp-text-preprocessing 0.0.6__tar.gz → 0.0.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nlp_text_preprocessing-0.0.6 → nlp_text_preprocessing-0.0.7}/PKG-INFO +1 -1
- {nlp_text_preprocessing-0.0.6 → nlp_text_preprocessing-0.0.7}/nlp_text_preprocessing/all_text_preprocess.py +7 -1
- {nlp_text_preprocessing-0.0.6 → nlp_text_preprocessing-0.0.7}/nlp_text_preprocessing.egg-info/PKG-INFO +1 -1
- {nlp_text_preprocessing-0.0.6 → nlp_text_preprocessing-0.0.7}/setup.py +1 -1
- {nlp_text_preprocessing-0.0.6 → nlp_text_preprocessing-0.0.7}/LICENSE +0 -0
- {nlp_text_preprocessing-0.0.6 → nlp_text_preprocessing-0.0.7}/MANIFEST.in +0 -0
- {nlp_text_preprocessing-0.0.6 → nlp_text_preprocessing-0.0.7}/nlp_text_preprocessing/__init__.py +0 -0
- {nlp_text_preprocessing-0.0.6 → nlp_text_preprocessing-0.0.7}/nlp_text_preprocessing/data/contractions.json +0 -0
- {nlp_text_preprocessing-0.0.6 → nlp_text_preprocessing-0.0.7}/nlp_text_preprocessing.egg-info/SOURCES.txt +0 -0
- {nlp_text_preprocessing-0.0.6 → nlp_text_preprocessing-0.0.7}/nlp_text_preprocessing.egg-info/dependency_links.txt +0 -0
- {nlp_text_preprocessing-0.0.6 → nlp_text_preprocessing-0.0.7}/nlp_text_preprocessing.egg-info/requires.txt +0 -0
- {nlp_text_preprocessing-0.0.6 → nlp_text_preprocessing-0.0.7}/nlp_text_preprocessing.egg-info/top_level.txt +0 -0
- {nlp_text_preprocessing-0.0.6 → nlp_text_preprocessing-0.0.7}/setup.cfg +0 -0
|
@@ -18,7 +18,13 @@ import nltk
|
|
|
18
18
|
fpath = os.path.join(os.path.dirname(__file__), 'data', 'contractions.json')
|
|
19
19
|
contractions = json.load(open(fpath))
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
try:
|
|
22
|
+
nlp = spacy.load('en_core_web_sm')
|
|
23
|
+
except OSError:
|
|
24
|
+
print("Downloading language model for the spaCy POS tagger...")
|
|
25
|
+
from spacy.cli import download
|
|
26
|
+
download('en_core_web_sm')
|
|
27
|
+
nlp = spacy.load('en_core_web_sm')
|
|
22
28
|
|
|
23
29
|
# List of NLTK packages and their corresponding resource paths for checking
|
|
24
30
|
nltk_packages = [
|
|
@@ -9,7 +9,7 @@ with open('requirements.txt') as fp:
|
|
|
9
9
|
setuptools.setup(
|
|
10
10
|
name='nlp_text_preprocessing',
|
|
11
11
|
include_package_data=True,
|
|
12
|
-
version='0.0.
|
|
12
|
+
version='0.0.7', # Increment version
|
|
13
13
|
author='Uditya Narayan Tiwari',
|
|
14
14
|
author_email='tiwarimerit@gmail.com',
|
|
15
15
|
description='This is a Text Processing Package For NLP',
|
|
File without changes
|
|
File without changes
|
{nlp_text_preprocessing-0.0.6 → nlp_text_preprocessing-0.0.7}/nlp_text_preprocessing/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|