Testing whether a sentence is consistent with the CREAK dataset

This framework is trained on the CREAK dataset.

Install

pip install creak-sense

Example


from creak_sense import CreakSense

sense = CreakSense("fractalego/creak-sense")

claim = "Bananas can be found in a grocery list"
sense.make_sense(claim)

with output "True".

Example with explanation


from creak_sense import CreakSense

sense = CreakSense("fractalego/creak-sense")

claim = "Bananas can be found in a grocery list"
sense.get_reason(claim)

with output "Bananas are a staple food".