Skip to content

Commit

Permalink
[no ci] bump
Browse files Browse the repository at this point in the history
  • Loading branch information
amaiya committed Apr 21, 2023
1 parent 4ca37d1 commit 77a2e03
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Most recent releases are shown at the top. Each release shows:
- **Changed**: Additional parameters, changes to inputs or outputs, etc
- **Fixed**: Bug fixes that don't change documented behaviour

## 0.36.dev (TBD)
## 0.36.0 (2023-04-21)

### new:
- easy-to-use-wrapper for sentiment analysis
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@
# Example: Sentiment Analysis
from ktrain.text.sentiment import SentimentAnalyzer
classifier = SentimentAnalyzer()
result = classifier.predict('I got a promotion today.')
texts = ['I got a promotion today.', 'My appointment is at 3:30.', 'This blows.']
result = classifier.predict(texts)
# OUTPUT:
# {'POSITIVE': 0.9021117091178894}
#[{'POSITIVE': 0.9021117091178894},
# {'NEUTRAL': 0.9110478758811951},
# {'NEGATIVE': 0.9071289896965027}]
```
- **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
2 changes: 1 addition & 1 deletion ktrain/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__all__ = ["__version__"]
__version__ = "0.36.dev"
__version__ = "0.36.0"

0 comments on commit 77a2e03

Please sign in to comment.