Downloads · 30 days
10
1% of all-time downloads
nanelimon/bert-base-turkish-job-advertisement
bert-base-turkish-job-advertisement is a text classification model from nanelimon. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
--- language: - tr tags: - translation license: apache-2.0 ---
Downloads · 30 days
10
1% of all-time downloads
All-time downloads
812
Public
Repo size
4.4 GB
Likes
1
Public
Click a slice to open those files.
.bin737 MB · 99%
From the Hugging Face model README
language:
It has been trained with 15451 real job advertisement data.
Included classes;
Accordingly, the success rates in education are as follows;
Mean-Precision: 0.9204655754937342
| Uygun İlan | Is Ilani Degil | Mustehcen | Cift Pozisyon | |
|---|---|---|---|---|
| Precision | 0.986 | 0.996 | 0.966 | 0.970 |
| Recall | 0.992 | 0.986 | 0.966 | 0.959 |
| F1 Score | 0.989 | 0.991 | 0.966 | 0.965 |
| Accuracy : 0.975 |
!IMPORTANT_HINT: The sentence given to pipe must not contain Turkish characters.
from transformers import AutoTokenizer, TextClassificationPipeline, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("nanelimon/bert-base-turkish-job-advertisement")
model = AutoModelForSequenceClassification.from_pretrained("nanelimon/bert-base-turkish-job-advertisement")
pipe = TextClassificationPipeline(model=model, tokenizer=tokenizer)
def set_sentence(sentence: str):
result = sentence.lower().replace('ö', 'o').replace('ı', 'i').replace('ü', 'u').replace('ç', 'c').replace('ğ', 'g').replace('ş', 's')
return result
print(pipe(set_sentence('Fiziği düzgün 17 yaş kızlar aranıyor')))
Result;
output: [{'label': 'Mustehcen', 'score': 0.9992677569389343}]
Seyma SARIGIL: [email protected]
Murat KOKLU: [email protected]
Click to review Master's thesis
apache-2.0
Free Software, Hell Yeah!