Commit
·
4836809
1
Parent(s):
d576eef
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Testing whether a sentence is consistent with the CREAK dataset
|
| 2 |
+
This framework is trained on the [CREAK dataset](https://arxiv.org/abs/2109.01653).
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
# Install
|
| 6 |
+
pip install creak-sense
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
# Example
|
| 10 |
+
```python
|
| 11 |
+
|
| 12 |
+
from creak_sense import CreakSense
|
| 13 |
+
|
| 14 |
+
sense = CreakSense("fractalego/creak-sense")
|
| 15 |
+
|
| 16 |
+
claim = "Bananas can be found in a grocery list"
|
| 17 |
+
sense.make_sense(claim)
|
| 18 |
+
```
|
| 19 |
+
with output "True".
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
# Example with explanation
|
| 23 |
+
```python
|
| 24 |
+
|
| 25 |
+
from creak_sense import CreakSense
|
| 26 |
+
|
| 27 |
+
sense = CreakSense("fractalego/creak-sense")
|
| 28 |
+
|
| 29 |
+
claim = "Bananas can be found in a grocery list"
|
| 30 |
+
sense.get_reason(claim)
|
| 31 |
+
```
|
| 32 |
+
with output "Bananas are a staple food".
|