Downloads · 30 days
0
behnamsa/persian-reverse-dict
persian-reverse-dict is a text classification model from behnamsa. Use it when you need a label for a piece of text. It is set up for generic.
Downloads · 30 days
0
Access
Public
Updated Mar 10, 2023
Repo size
160 MB
Likes
1
Public
Click a slice to open those files.
.data-00000-of-00001143 MB · 89%
From the Hugging Face model README

This project aims to create a Persian reverse dictionary model that suggests a word based on our input explanations. This model is based on Transformer encoders and uses fast text embedding.
The dataset used in this work is from this link. This dataset contains 855,217 data from Amid, Moein, and Dehkhoda dictionaries plus Farsnet and Persian Wikipedia.
| Metric | Value |
|---|---|
| Top-10 accuracy | 16.72% |
| Top-100 accuracy | 33.89% |
| Top-10 Synonyms accuracy | 42.19% |
| Top-100 Synonyms accuracy | 62.72% |
PreTrainedPipeline class from the script.Here's an example usage:
from pipeline import PreTrainedPipeline
pipeline = PreTrainedPipeline("path/to/directory")
result = pipeline("وسیله حمل و نقل پرنده.")
print(result)