Translation
Transformers
Chinese
English
chinese
nlp
text-processing
markdown
offline
deep-translator
marianmt
Instructions to use algorembrant/chinese-translator-paste with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use algorembrant/chinese-translator-paste with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="algorembrant/chinese-translator-paste")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("algorembrant/chinese-translator-paste", dtype="auto") - Notebooks
- Google Colab
- Kaggle
| # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # ChineseFileTranslator β .gitattributes | |
| # Author: algorembrant | |
| # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # ββ Default: normalize all text files to LF on commit ββββββββββββββββββββ | |
| * text=auto eol=lf | |
| # ββ Python source files βββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| *.py text eol=lf diff=python | |
| # ββ Markdown and documentation ββββββββββββββββββββββββββββββββββββββββββββ | |
| *.md text eol=lf | |
| *.rst text eol=lf | |
| *.txt text eol=lf | |
| # ββ Config and data files βββββββββββββββββββββββββββββββββββββββββββββββββ | |
| *.json text eol=lf | |
| *.yaml text eol=lf | |
| *.yml text eol=lf | |
| *.toml text eol=lf | |
| *.cfg text eol=lf | |
| *.ini text eol=lf | |
| *.env text eol=lf | |
| # ββ Shell scripts βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| *.sh text eol=lf | |
| *.bash text eol=lf | |
| # ββ Windows batch scripts (CRLF required) βββββββββββββββββββββββββββββββββ | |
| *.bat text eol=crlf | |
| *.cmd text eol=crlf | |
| *.ps1 text eol=crlf | |
| # ββ Binary files β do not modify line endings βββββββββββββββββββββββββββββ | |
| *.png binary | |
| *.jpg binary | |
| *.jpeg binary | |
| *.gif binary | |
| *.bmp binary | |
| *.ico binary | |
| *.svg binary | |
| *.pdf binary | |
| *.zip binary | |
| *.tar.gz binary | |
| *.whl binary | |
| # ββ HuggingFace Large File Storage (LFS) β model weights ββββββββββββββββββ | |
| # Uncomment if storing model checkpoints in this repo | |
| # *.bin filter=lfs diff=lfs merge=lfs -text | |
| # *.safetensors filter=lfs diff=lfs merge=lfs -text | |
| # *.pt filter=lfs diff=lfs merge=lfs -text | |
| # *.ckpt filter=lfs diff=lfs merge=lfs -text | |
| # *.h5 filter=lfs diff=lfs merge=lfs -text | |
| # ββ Linguist overrides (GitHub language detection) ββββββββββββββββββββββββ | |
| *.md linguist-documentation | |
| *.txt linguist-documentation | |
| requirements.txt linguist-documentation | |
| # ββ Export-ignore (files excluded from git archive / release tarballs) ββββ | |
| .gitattributes export-ignore | |
| .gitignore export-ignore | |
| .github/ export-ignore | |
| tests/ export-ignore | |