aamirtaymoor commited on
Commit
7669c5a
·
verified ·
1 Parent(s): c3e5080

Update ml_service.py

Browse files
Files changed (1) hide show
  1. ml_service.py +1 -1
ml_service.py CHANGED
@@ -153,7 +153,7 @@ class MlProcessing:
153
 
154
  def apply_sentiment_model(self, review_dict_entities):
155
  # nlp = spacy.load('en_core_web_sm')
156
- nlp = self.sentiment_model
157
  sentence_finder = SentenceBoundsFinder(nlp)
158
  positive_sentiment_matcher = self.configure_matcher(nlp, POSITIVE_SENTIMENT_PATTERNS)
159
  sentiment_model = self.load_sentiment_model()
 
153
 
154
  def apply_sentiment_model(self, review_dict_entities):
155
  # nlp = spacy.load('en_core_web_sm')
156
+ nlp = self.language_model
157
  sentence_finder = SentenceBoundsFinder(nlp)
158
  positive_sentiment_matcher = self.configure_matcher(nlp, POSITIVE_SENTIMENT_PATTERNS)
159
  sentiment_model = self.load_sentiment_model()