Skip to content

Commit

Permalink
Fix performance logic for text to multioption
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-piles committed Nov 11, 2024
1 parent 8d85621 commit bd53870
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ def performance(self, extraction_data: ExtractionData) -> float:

self.train(performance_train_set)

prediction_samples = [
PredictionSample(segment_selector_texts=x.segment_selector_texts) for x in performance_test_set.samples
]
prediction_samples = [PredictionSample(source_text=x.labeled_data.source_text) for x in performance_test_set.samples]
predictions = self.predict(prediction_samples)

self.remove_model()
Expand Down

0 comments on commit bd53870

Please sign in to comment.