38
loading...
This website collects cookies to deliver better user experience
✨Checkout the live demo here
twint -s netflix |\
./twint2json.py |\
./entity |\
./senti
....
{
"id": "6a5fe972-e2e6-11eb-9efa-42b45ace4426",
"text": "Wickham were returned, and to lament over his absence from the Netherfield ball. He joined them on their entering the town, and attended them to their aunt’s where his regret and vexation, and the concern of everybody, was well talked over. To Elizabeth, however, he voluntarily acknowledged that the necessity of his absence _had_ been self-imposed.",
"afinn_score": -1.0,
"entities": [
{
"label": "PERSON",
"entity": "Wickham"
},
{
"label": "ORG",
"entity": "Netherfield"
},
{
"label": "PERSON",
"entity": "Elizabeth"
}
]
}
...
twint -s rainfall |\
./twint2json.py |\
./xformer.py --pipeline question-answering --param 'where did it rain' |\
jq 'if (.xfrmr_question_answering.score) > 0.80 then . else empty end'
./files2json.py -n 3 data/*.txt |\
./xformer.py --pipeline question-answering --param 'who gave the speech ?' |\
jq 'if (.xfrmr_question_answering.score) > 0.80 then . else empty end'