Instructions to use Porameht/bert-base-th-cased-intent-booking with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Porameht/bert-base-th-cased-intent-booking with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Porameht/bert-base-th-cased-intent-booking")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Porameht/bert-base-th-cased-intent-booking") model = AutoModelForSequenceClassification.from_pretrained("Porameht/bert-base-th-cased-intent-booking", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Porameht/bert-base-th-cased-intent-booking: direct link, hf CLI and curl.
- Browser
- Download file 1.58 kB
-
https://huggingface.co/Porameht/bert-base-th-cased-intent-booking/resolve/main/config.json
- Command line
-
hf download hf://Porameht/bert-base-th-cased-intent-booking/config.json
-
curl -L -o config.json https://huggingface.co/Porameht/bert-base-th-cased-intent-booking/resolve/main/config.json
1.58 kB
| { | |
| "_name_or_path": "Geotrend/bert-base-th-cased", | |
| "architectures": [ | |
| "BertForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "directionality": "bidi", | |
| "gradient_checkpointing": false, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "Inquire Facilities", | |
| "1": "Ask for Information", | |
| "2": "Modify Reservation", | |
| "3": "Request Special Service", | |
| "4": "Cancel Reservation", | |
| "5": "Check Availability", | |
| "6": "Make Reservation", | |
| "7": "Suggest Attractions", | |
| "8": "Greeting", | |
| "9": "Verify Reservation" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "Ask for Information": 1, | |
| "Cancel Reservation": 4, | |
| "Check Availability": 5, | |
| "Greeting": 8, | |
| "Inquire Facilities": 0, | |
| "Make Reservation": 6, | |
| "Modify Reservation": 2, | |
| "Request Special Service": 3, | |
| "Suggest Attractions": 7, | |
| "Verify Reservation": 9 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "pooler_fc_size": 768, | |
| "pooler_num_attention_heads": 12, | |
| "pooler_num_fc_layers": 3, | |
| "pooler_size_per_head": 128, | |
| "pooler_type": "first_token_transform", | |
| "position_embedding_type": "absolute", | |
| "pretraining_tp": 1, | |
| "problem_type": "single_label_classification", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.44.2", | |
| "type_vocab_size": 2, | |
| "use_cache": false, | |
| "vocab_size": 8506 | |
| } | |