Spaces:
Running
Running
Commit
·
04383e2
1
Parent(s):
d87e8e8
fix: incorrect array type
Browse files
core-model-prediction/hypothesis.py
CHANGED
@@ -84,8 +84,8 @@ class BaseModelHypothesis:
|
|
84 |
return features
|
85 |
|
86 |
def calculate_not_normalized_features(self, text: str) -> List[float]:
|
87 |
-
sentiment_intensity = self.measure_sentiment_intensity(text)
|
88 |
-
readability_scores =
|
89 |
perplexity = [self.gemma2bdependencies.calculate_perplexity(text)]
|
90 |
burstiness = [self.gemma2bdependencies.calculate_burstiness(text)]
|
91 |
features = sentiment_intensity + readability_scores + perplexity + burstiness
|
|
|
84 |
return features
|
85 |
|
86 |
def calculate_not_normalized_features(self, text: str) -> List[float]:
|
87 |
+
sentiment_intensity = [self.measure_sentiment_intensity(text)]
|
88 |
+
readability_scores = self.measure_readability(text)
|
89 |
perplexity = [self.gemma2bdependencies.calculate_perplexity(text)]
|
90 |
burstiness = [self.gemma2bdependencies.calculate_burstiness(text)]
|
91 |
features = sentiment_intensity + readability_scores + perplexity + burstiness
|