find-similar integration for django
You can find Full Project Documentation here
- Mission
- Open Source Project
- Features
- Requirements
- Development Status
- Install
- Quickstart
- Contributing
To provide find-similar integration with django projects
This is the open source project with MIT license. Be free to use, fork, clone and contribute.
- Django models
- Django forms
- django, find-similar
- See more in Full Documentation
- Package already available on PyPi
- See more in Full Documentation
pip install django-find-similar
See more in Full Documentation
from django_find_similar.models import FindSimilarInput, Text
input_data = {
'text': Text.objects.create(text='one two'),
# 'texts': [Text.objects.create(text='one'), Text.objects.create(text='two')],
'language': "english",
'count': 5,
# 'dictionary': None,
'remove_stopwords': True,
# 'keywords': None,
}
find_similar_input = FindSimilarInput.objects.create(
**input_data
)
texts = [Text.objects.create(text='one'), Text.objects.create(text='two')]
for text in texts:
find_similar_input.texts.add(text)
find_similar_input.save()
More examples in Full Documentation
You are welcome! To easy start please check: