Downloads · 30 days
8
17% of all-time downloads
InesPL84/T-AIA-DISTILCAMEMBERT-BASE-TEXT-CLASSIFICATION
T-AIA-DISTILCAMEMBERT-BASE-TEXT-CLASSIFICATION is a machine learning model from InesPL84. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This model is a fine-tuned version of the cmarkea/distilcamembert-base, adapted for binary text classification in French.
Downloads · 30 days
8
17% of all-time downloads
All-time downloads
46
Public
Repo size
273 MB
Likes
0
Public
Click a slice to open those files.
.h5273 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of the cmarkea/distilcamembert-base, adapted for binary text classification in French.
CamembertForSequenceClassificationThis model is designed for classifying sentences as either travel-related or non-travel-related, with high accuracy on French datasets.
Given a sentence such as "Je veux aller de Paris à Lyon", the model will detect and label:
POSITIVE as label0.9999655485153198 as scoreGiven a sentence such as "Je veux acheter du pain", the model will detect and label:
NEGATIVE as label0.9999724626541138 as scoreThe model uses the following entity labels:
POSITIVE: Travel-related sentencesNEGATIVE: Non-travel-related sentencesThe model was fine-tuned using a proprietary French dataset: Crysy-rthomas/T-AIA-CLASSIFICATION-DATASET. This dataset contains thousands of labeled examples for travel and non-travel sentences.
The tokenizer is based on the pre-trained CamemBERT tokenizer, adapted for the specific entity-labeling task. It uses subword tokenization based on the BPE (Byte-Pair Encoding) approach, which splits words into smaller units.
Tokenizer special settings:
You can load and use this model with Hugging Face’s transformers library and use pipeline function for creating a text classification pipeline as follows:
from transformers import pipeline
model_path = "InesPL84/T-AIA-DISTILCAMEMBERT-BASE-TEXT-CLASSIFICATION"
classifier = pipeline("text-classification", model=model_path, tokenizer=model_path)
sentence = "Je veux aller de Paris à Lyon"
result = classifier(sentence)
print(result)
While the model performs well on the training and test datasets, there are some known limitations:
This model is released under the Apache 2.0 License.