cellanet commited on
Commit
97aa13e
1 Parent(s): 43a58a9

Update machine_learning.py

Browse files
Files changed (1) hide show
  1. machine_learning.py +7 -3
machine_learning.py CHANGED
@@ -1,8 +1,12 @@
1
- !pip install https://huggingface.co/spacy/en_core_web_sm/resolve/main/en_core_web_sm-any-py3-none-any.whl
 
 
 
 
2
 
3
 
4
  from statistics import mode
5
- import spacy
6
  import re
7
  import numpy
8
  import tflearn
@@ -30,7 +34,7 @@ def convert_txt_to_DataFrame(textFile):
30
 
31
  return temp_dict
32
 
33
- npl = spacy.load('en_core_web_md')
34
 
35
  def convert_to_list(file):
36
  data = convert_txt_to_DataFrame(file)
 
1
+ !pip install https://huggingface.co/spacy/en_core_web_md/resolve/main/en_core_web_md-any-py3-none-any.whl
2
+
3
+ # Using spacy.load().
4
+ import spacy
5
+ nlp = spacy.load("en_core_web_md")
6
 
7
 
8
  from statistics import mode
9
+ #import spacy
10
  import re
11
  import numpy
12
  import tflearn
 
34
 
35
  return temp_dict
36
 
37
+ #npl = spacy.load('en_core_web_md')
38
 
39
  def convert_to_list(file):
40
  data = convert_txt_to_DataFrame(file)