Instructions to use AbdulElahGwaith/transformers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AbdulElahGwaith/transformers with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AbdulElahGwaith/transformers", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download docs/source/ko/internal/tokenization_utils.md from AbdulElahGwaith/transformers: direct link, hf CLI and curl.
- Browser
- Download file 1.61 kB
-
https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/ko/internal/tokenization_utils.md
- Command line
-
hf download hf://AbdulElahGwaith/transformers/docs/source/ko/internal/tokenization_utils.md
-
curl -L -o tokenization_utils.md https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/ko/internal/tokenization_utils.md
1.61 kB
ํ ํฌ๋์ด์ ๋ฅผ ์ํ ์ ํธ๋ฆฌํฐ [[utilities-for-tokenizers]]
์ด ํ์ด์ง๋ ํ ํฌ๋์ด์ ์์ ์ฌ์ฉ๋๋ ๋ชจ๋ ์ ํธ๋ฆฌํฐ ํจ์๋ค์ ๋์ดํ๋ฉฐ, ์ฃผ๋ก [PreTrainedTokenizer]์ [PreTrainedTokenizerFast] ์ฌ์ด์ ๊ณตํต ๋ฉ์๋๋ฅผ ๊ตฌํํ๋ [~tokenization_utils_base.PreTrainedTokenizerBase] ํด๋์ค ์ ๋ค๋ฃน๋๋ค.
์ด ํจ์๋ค ๋๋ถ๋ถ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ํ ํฌ๋์ด์ ์ฝ๋๋ฅผ ์ฐ๊ตฌํ ๋๋ง ์ ์ฉํฉ๋๋ค.
PreTrainedTokenizerBase [[transformers.PreTrainedTokenizerBase]]
[[autodoc]] tokenization_utils_base.PreTrainedTokenizerBase
- call
- all
Enums ๋ฐ namedtuples [[transformers.tokenization_utils_base.TruncationStrategy]]
[[autodoc]] tokenization_utils_base.TruncationStrategy
[[autodoc]] tokenization_utils_base.CharSpan
[[autodoc]] tokenization_utils_base.TokenSpan