thealper2 commited on
Commit
a8f817c
1 Parent(s): 4ec3330

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ class AspectSentimentPipeline(Pipeline):
52
  main_results = []
53
  main_aspects = []
54
  for sentence in sentences:
55
- sentence = preprocess(sentence)
56
  aspects = self.extract_aspects(sentence, self.aspect_extraction_model, self.aspect_extraction_tokenizer, self.device)
57
  for aspect in aspects:
58
  main_aspects.append(aspect)
 
52
  main_results = []
53
  main_aspects = []
54
  for sentence in sentences:
55
+ sentence = preprocess_text(sentence)
56
  aspects = self.extract_aspects(sentence, self.aspect_extraction_model, self.aspect_extraction_tokenizer, self.device)
57
  for aspect in aspects:
58
  main_aspects.append(aspect)