diff --git a/CHANGELOG.md b/CHANGELOG.md index c90912e39..1984fe421 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 1fc035884..625b58c86 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/ktrain/version.py b/ktrain/version.py index f6c7c08c9..745eb840f 100644 --- a/ktrain/version.py +++ b/ktrain/version.py @@ -1,2 +1,2 @@ __all__ = ["__version__"] -__version__ = "0.36.dev" +__version__ = "0.36.0"