-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create mkdocs for sentiment analysis example
- Loading branch information
1 parent
aa1cded
commit 5eaf82b
Showing
2 changed files
with
32 additions
and
12 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
examples/pretrained_models/text_models/sentiment_analysis_example.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from autokeras.pretrained.sentiment_analysis import SentimentAnalysis | ||
|
||
text_cls = SentimentAnalysis() | ||
sentiment_cls = SentimentAnalysis() | ||
|
||
polarity = text_cls.predict("The model is working well..") | ||
polarity = sentiment_cls.predict("The model is working well..") | ||
|
||
print("Polarity of the input sentence is (sentiment is +ve if polarity > 0.5) : ", polarity) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters