Instructions to use GEOcite/DocumentSegmentationModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GEOcite/DocumentSegmentationModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="GEOcite/DocumentSegmentationModel")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForTokenClassification processor = AutoProcessor.from_pretrained("GEOcite/DocumentSegmentationModel") model = AutoModelForTokenClassification.from_pretrained("GEOcite/DocumentSegmentationModel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from GEOcite/DocumentSegmentationModel: direct link, hf CLI and curl.
- Browser
- Download file 720 Bytes
-
https://huggingface.co/GEOcite/DocumentSegmentationModel/resolve/5bc73442cfa797e7c1f029432a67ed64b8c23dfd/tokenizer_config.json
- Command line
-
hf download hf://GEOcite/DocumentSegmentationModel@5bc73442cfa797e7c1f029432a67ed64b8c23dfd/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/GEOcite/DocumentSegmentationModel/resolve/5bc73442cfa797e7c1f029432a67ed64b8c23dfd/tokenizer_config.json
720 Bytes
| { | |
| "bos_token": "<s>", | |
| "cls_token": "<s>", | |
| "cls_token_box": [ | |
| 0, | |
| 0, | |
| 0, | |
| 0 | |
| ], | |
| "eos_token": "</s>", | |
| "mask_token": { | |
| "__type": "AddedToken", | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "model_max_length": 1000000000000000019884624838656, | |
| "name_or_path": "microsoft/layoutxlm-base", | |
| "only_label_first_subword": true, | |
| "pad_token": "<pad>", | |
| "pad_token_box": [ | |
| 0, | |
| 0, | |
| 0, | |
| 0 | |
| ], | |
| "pad_token_label": -100, | |
| "sep_token": "</s>", | |
| "sep_token_box": [ | |
| 1000, | |
| 1000, | |
| 1000, | |
| 1000 | |
| ], | |
| "special_tokens_map_file": null, | |
| "tokenizer_class": "LayoutXLMTokenizer", | |
| "unk_token": "<unk>" | |
| } | |