Showcase the example with the correct prediction for demonstration purposes
Browse files
README.md
CHANGED
@@ -81,7 +81,7 @@ def target_sentiment_extraction(sentence, target):
|
|
81 |
Finally, you can infer model results as follows:
|
82 |
```python
|
83 |
# Input sentence.
|
84 |
-
sentence = "I would support him
|
85 |
# Input target.
|
86 |
target = "him"
|
87 |
# output response
|
@@ -90,7 +90,7 @@ print(f"Author opinion towards `{target}` in `{sentence}` is:\n{flant5_response}
|
|
90 |
```
|
91 |
|
92 |
The response of the model is as follows:
|
93 |
-
> Author opinion towards `him` in `I would support him
|
94 |
|
95 |
### Downstream Use
|
96 |
|
|
|
81 |
Finally, you can infer model results as follows:
|
82 |
```python
|
83 |
# Input sentence.
|
84 |
+
sentence = "I would support him."
|
85 |
# Input target.
|
86 |
target = "him"
|
87 |
# output response
|
|
|
90 |
```
|
91 |
|
92 |
The response of the model is as follows:
|
93 |
+
> Author opinion towards `him` in `I would support him.` is: **positive**
|
94 |
|
95 |
### Downstream Use
|
96 |
|