Update README.md
Browse files
README.md
CHANGED
@@ -1,2 +1,7 @@
|
|
1 |
## Bart for Cause-Effect Extraction
|
2 |
-
This model was created using Taskload's service for automating information extraction. This service is currently in closed Beta.
|
|
|
|
|
|
|
|
|
|
|
|
1 |
## Bart for Cause-Effect Extraction
|
2 |
+
This model was created using Taskload's service for automating information extraction. This service is currently in closed Beta.
|
3 |
+
|
4 |
+
```python
|
5 |
+
cause_effect = pipeline("summarization", model="taskload/bart-cause-effect")
|
6 |
+
output = cause_effect("text: "+event, max_length=300, min_length=30, do_sample=False)
|
7 |
+
```
|