Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

[website] Add a demo page for the Website #1180

Open
wants to merge 14 commits into
base: v0.x
Choose a base branch
from
7 changes: 7 additions & 0 deletions docs/demo/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Demos
=====

.. toctree::
:maxdepth: 2

sentiment
22 changes: 22 additions & 0 deletions docs/demo/sentiment.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Sentiment Analysis
==================

Introduction
------------

Sentiment Analysis predicts whether an input is positive or negative. The model is based on BERT base, and are trained on the binary classification setting of the Stanford Sentiment Treebank. It achieves about 87% and 93.4% accuracy on the test set.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, it should be "It achieves about 93.4% accuracy on the dev set. "


Demo
----

Please input the following into the text box:

.. raw:: html

["Positive sentiment", "Negative sentiment"]
<form action="http://34.222.89.17:8888/bert_sst/predict" method="post">
<label>
<input type="text" name="data">
</label>
<input type="submit" value="Submit">
</form>
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,5 @@ You may find the 60-min Gluon crash course linked from there especially helpful.
examples/index
api/index
community/index
demo/index
genindex