Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 785 Bytes

File metadata and controls

33 lines (23 loc) · 785 Bytes

Sentiment Analysis Using Bert

input

A SENTENCE.

output

Positive or Negative

Usage

Set the SENTENCE as an argument.

$ python3 bert_sentiment_analysis.py -i "Transformers and ailia SDK is an awesome combo!"
...
Input :  Transformers and ailia SDK is an awesome combo!
Label :  positive
Score :  0.99984145

Reference

transformers

onnx-transformers

Framework

PyTorch 1.6.0

Model Format

ONNX opset = 11

Netron