Skip to content

Commit

Permalink
[no ci] minor edit
Browse files Browse the repository at this point in the history
  • Loading branch information
amaiya committed Apr 21, 2023
1 parent 77a2e03 commit 0c4d7f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
# Example: Sentiment Analysis
from ktrain.text.sentiment import SentimentAnalyzer
classifier = SentimentAnalyzer()
texts = ['I got a promotion today.', 'My appointment is at 3:30.', 'This blows.']
texts = ['I got a promotion today.', 'My appointment is at 3:30.', 'There were cost overruns.']
result = classifier.predict(texts)
# OUTPUT:
#[{'POSITIVE': 0.9021117091178894},
# {'NEUTRAL': 0.9110478758811951},
# {'NEGATIVE': 0.9071289896965027}]
# {'NEGATIVE': 0.743671715259552}]
```
- **2023-04-01**
- **ktrain 0.35.x** is released and supports **Generative AI** using an instruction-fine-tuned version of GPT-J that can run on your own machine. See the [example notebook](https://nbviewer.jupyter.org/github/amaiya/ktrain/blob/develop/examples/text/generative_ai_example.ipynb) for more information. Supply prompts in the form of instructions for what you want the model to do:
Expand Down

0 comments on commit 0c4d7f5

Please sign in to comment.