nlp-text-preprocessing 0.0.6__tar.gz → 0.0.8__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nlp_text_preprocessing
3
- Version: 0.0.6
3
+ Version: 0.0.8
4
4
  Summary: This is a Text Processing Package For NLP
5
5
  Author: Uditya Narayan Tiwari
6
6
  Author-email: tiwarimerit@gmail.com
@@ -18,7 +18,14 @@ 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
- nlp = spacy.load('en_core_web_sm')
21
+ try:
22
+ nlp = spacy.load('en_core_web_sm')
23
+ except OSError:
24
+ '''print("Downloading language model Use this...")
25
+ from spacy.cli import download
26
+ download('en_core_web_sm')
27
+ nlp = spacy.load('en_core_web_sm')'''
28
+
22
29
 
23
30
  # List of NLTK packages and their corresponding resource paths for checking
24
31
  nltk_packages = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nlp_text_preprocessing
3
- Version: 0.0.6
3
+ Version: 0.0.8
4
4
  Summary: This is a Text Processing Package For NLP
5
5
  Author: Uditya Narayan Tiwari
6
6
  Author-email: tiwarimerit@gmail.com
@@ -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.6', # Increment version
12
+ version='0.0.8', # 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',