Text-based Recommendation Engine using Cohere NLP
Project description
Osusume (おすすめ)
Text-Based Recommendation Engine using Cohere
Osusume is a library to implement text-based recommendation engine using Cohere Embeddings and Generation API. Initally was built for a Hacktahon Submission hosted by Lablab.AI and Cohere.
Quick Start
import pandas as pd
import nltk
nltk.download('wordnet')
nltk.download('omw-1.4')
from osusume import Osusume
anime_df = pd.read_json('anime_dataset.json')
engine = Osusume.from_dict({
'token': '<cohere-token>',
'dataset': anime_df,
'sentiment_column': 'synopsis',
'response_prompt': 'anime_data.txt',
'response_column': [
('Title', 'title'),
('Synopsis', 'synopsis')
]
}).fit()
engine.predict(
query='animes about monsters and aliens from another world',
n_out=3
)
# Top 3 Anime's from given Query
Installation
~ pip install osusume --upgrade
You need to use Pip to install osusume. Conda package is currently unavailable.
Requirements
- Python >= 3.8
- Cohere
- Pandas
- Numpy
- Scikit Learn
- NLTK
Author
- Abhishta Gatya (Email) - Software and Machine Learning Engineer
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
osusume-1.0.0.tar.gz
(11.8 kB
view details)
Built Distribution
osusume-1.0.0-py3-none-any.whl
(16.7 kB
view details)
File details
Details for the file osusume-1.0.0.tar.gz
.
File metadata
- Download URL: osusume-1.0.0.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1acc0dfcf50d02b1a7ed9ffb82d8cf6ed208f771cfc8a81aafbd4fc63176bc25
|
|
MD5 |
16d3229eaa90ce174eee658cd0145ace
|
|
BLAKE2b-256 |
eb477571c94f30acb5217cf0416d990fba1ae236c49a3d4b0ba29dc808ac7f46
|
File details
Details for the file osusume-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: osusume-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
74e6989c91bc31c8107cc5a5f4979f5f47125cc7dfd11c78783df23b776ac20a
|
|
MD5 |
2ca3380c38eef751ea77b23e27ba04fe
|
|
BLAKE2b-256 |
584e0636a5bb12b76abbb7b4ecdb681c1caf3cccdfab5d359ceac4227e3d77d3
|