turn-detector-v2 / config.json
hayatiali's picture
v2.0: Semantic rule improvements + dataset expansion (+9082 samples)
ab5f062 verified
{
"architectures": [
"BertForSequenceClassification"
],
"attention_probs_dropout_prob": 0.1,
"classifier_dropout": null,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"id2label": {
"0": "agent_response",
"1": "backchannel"
},
"initializer_range": 0.02,
"intermediate_size": 3072,
"label2id": {
"agent_response": 0,
"backchannel": 1
},
"layer_norm_eps": 1e-12,
"max_position_embeddings": 512,
"model_type": "bert",
"num_attention_heads": 12,
"num_hidden_layers": 12,
"pad_token_id": 0,
"position_embedding_type": "absolute",
"problem_type": "single_label_classification",
"torch_dtype": "float32",
"transformers_version": "4.52.4",
"type_vocab_size": 2,
"use_cache": true,
"vocab_size": 32000,
"_metadata": {
"model_name": "turn-detection-v2",
"version": "1.0.0",
"published_at": "2025-12-31",
"author": "Fine-Tune Assistant",
"license": "Apache-2.0",
"huggingface_repo": "hayatiali/turn-detection-v2",
"huggingface_url": "https://huggingface.co/hayatiali/turn-detection-v2"
},
"_context_aware": {
"enabled": true,
"input_format": "[bot] {bot_message} [sep] [user] {user_message}",
"special_tokens": [
"[bot]",
"[sep]",
"[user]"
],
"example_input": "[bot] sunucuya katilmak icin ne yapmaliyim [sep] [user] ya davet kodu alabilir miyim",
"fallback_behavior": "If no [bot] context provided, model uses user text only"
},
"_task": {
"type": "text-classification",
"name": "Turn Detection V2",
"description": "Classifies text into 2 categories: agent_response, backchannel",
"num_labels": 2
},
"_labels": {
"num_labels": 2,
"id2label": {
"0": "agent_response",
"1": "backchannel"
},
"label2id": {
"agent_response": 0,
"backchannel": 1
},
"label_descriptions": {
"agent_response": "Category: agent_response",
"backchannel": "Category: backchannel"
}
},
"_domain": {
"language": "Turkish (tr)",
"domain": "General",
"base_model": "dbmdz/bert-base-turkish-uncased"
},
"_training": {
"dataset": {
"name": "callcenter-turn-detection-classification",
"total_samples": 65310,
"train_samples": 52287,
"test_samples": 13023,
"label_distribution": {
"agent_response": "35223 (67.4%)",
"backchannel": "17064 (32.6%)"
}
},
"hyperparameters": {
"max_sequence_length": 128,
"batch_size": 16,
"learning_rate": 3e-05,
"epochs": 4,
"optimizer": "AdamW",
"weight_decay": 0.01,
"loss_function": "CrossEntropyLoss"
},
"hardware": "mps"
},
"_evaluation": {
"metrics": {
"macro_f1": 0.9769,
"micro_f1": 0.9794,
"mcc": 0.9544,
"accuracy": 97.94
},
"per_class": {
"agent_response": {
"accuracy": 99.57,
"samples": 8553
},
"backchannel": {
"accuracy": 94.83,
"samples": 4470
}
}
}
}