Instructions to use acceler-technology/prod-lhdn-table-bert-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use acceler-technology/prod-lhdn-table-bert-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="acceler-technology/prod-lhdn-table-bert-model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("acceler-technology/prod-lhdn-table-bert-model") model = AutoModelForSequenceClassification.from_pretrained("acceler-technology/prod-lhdn-table-bert-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from acceler-technology/prod-lhdn-table-bert-model: direct link, hf CLI and curl.
- Browser
- Download file 3.06 kB
-
https://huggingface.co/acceler-technology/prod-lhdn-table-bert-model/resolve/main/README.md
- Command line
-
hf download hf://acceler-technology/prod-lhdn-table-bert-model/README.md
-
curl -L -o README.md https://huggingface.co/acceler-technology/prod-lhdn-table-bert-model/resolve/main/README.md
3.06 kB
| library_name: transformers | |
| pipeline_tag: text-classification | |
| tags: | |
| - bert | |
| - document-processing | |
| - table-selection | |
| - lhdn | |
| - ebc | |
| # LHDN Table Classifier · BERT · Production Snapshot | |
| A production snapshot of the acceler-technology team's BERT classifier for LHDN table-related text. It preserves released model and tokenizer files separately from the development checkpoint. | |
| **中文简介:** 团队 BERT 表格相关文本分类模型的生产快照,保存独立于开发仓库的发布版本。 | |
| ## Purpose and model details | |
| The model predicts a class from input text for the team's table-selection work. It does not directly read document images, detect table boundaries, or extract individual cells. | |
| | Item | Value | | |
| | --- | --- | | |
| | Role | Production snapshot | | |
| | Architecture | `BertForSequenceClassification` | | |
| | Recorded source | `acceler-technology/dev-lhdn-table-bert-model` | | |
| | Task setting | Single-label classification | | |
| | Encoder layers / hidden size | 12 / 768 | | |
| | Maximum input positions | 512 | | |
| | Tokenizer | Lowercasing `BertTokenizer` | | |
| | Saved Transformers version | 4.48.2 | | |
| Sources: [config.json](https://huggingface.co/acceler-technology/prod-lhdn-table-bert-model/blob/main/config.json) and the saved tokenizer configuration. Use this repository's tokenizer with its weights. Confirm the training label map before interpreting predictions. The `prod` name identifies a release snapshot; it does not establish a current live deployment. | |
| ## Load the model | |
| Install `torch` and `transformers` first. | |
| ```python | |
| from transformers import AutoTokenizer, AutoModelForSequenceClassification | |
| model_id = "acceler-technology/prod-lhdn-table-bert-model" | |
| tokenizer = AutoTokenizer.from_pretrained(model_id) | |
| model = AutoModelForSequenceClassification.from_pretrained(model_id) | |
| model.eval() | |
| ``` | |
| This example loads the saved artifacts. Input preparation must match training. Long text needs a chunking or truncation policy within the 512-position limit. | |
| ## Project and limitations | |
| Related project data is held in [lhdn-dataset](https://huggingface.co/datasets/acceler-technology/lhdn-dataset), which remains private. The exact training subset, full recipe, and quantitative evaluation results are not documented here. | |
| Unfamiliar documents and text-extraction errors can change classification results. Review predictions before downstream use. The model does not determine tax or legal outcomes. | |
| ## Team and links | |
| Developed within [acceler-technology](https://huggingface.co/acceler-technology). Henry ([HenryTeo27](https://huggingface.co/HenryTeo27)) led this project area, executed the data work, and participated in model training and technical discussions. [kwyong](https://huggingface.co/kwyong) handled model uploads. | |
| [Project showcase](https://github.com/HenryTeo27/EBC-HuggingFace-Showcase) · [Development BERT model](https://huggingface.co/acceler-technology/dev-lhdn-table-bert-model) | |
| A license has not been specified for this checkpoint. Public visibility alone does not grant unrestricted reuse rights. | |