Case with 2 conditions mix reviews #2
Replies: 1 comment
-
That's a great example! I agree, atm, it's a tricky sentence for the pipeline to analyze. The If you change the sentence to something like this: "Yam is great for joint pain but it's bad for liver disease." The reason why it now splits, is because we added a subject to the other clauses, making it splittable. You can also write example reviews directly to the Healthsea demo |
Beta Was this translation helpful? Give feedback.
-
Sample input: Yam is great for joint pain but bad for liver disease
Code below:
Output below:
[{'split_indices': (0, 11), 'has_ent': True, 'ent_indices': (4, 6), 'blinder': '_CONDITION_', 'ent_name': 'joint pain', 'cats': {'POSITIVE': 0.9715917110443115, 'NEUTRAL': 0.004003751091659069, 'NEGATIVE': 0.01367472019046545, 'ANAMNESIS': 0.010729866102337837}, 'prediction_text': ['Yam', 'is', 'great', 'for', '_CONDITION_', 'but', 'bad', 'for', 'liver', 'disease']}, {'split_indices': (0, 11), 'has_ent': True, 'ent_indices': (9, 11), 'blinder': '_CONDITION_', 'ent_name': 'liver disease', 'cats': {'POSITIVE': 0.9650901556015015, 'NEUTRAL': 0.004530671052634716, 'NEGATIVE': 0.023644359782338142, 'ANAMNESIS': 0.0067347269505262375}, 'prediction_text': ['Yam', 'is', 'great', 'for', 'joint', 'pain', 'but', 'bad', 'for', '_CONDITION_']}]
Expected 1 positive and another negative. Actually found 2 positive sentiments.
Beta Was this translation helpful? Give feedback.
All reactions