Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ class AspectSentimentPipeline(Pipeline):
|
|
52 |
main_results = []
|
53 |
main_aspects = []
|
54 |
for sentence in sentences:
|
55 |
-
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)
|