Views
No views yet
en) -> Sorani Kurdish (ckb) trained from the local en-ckb directory of the OPUS-MT training workspace.en -> ckbspm4k-spm4kbest-chrfInterdialectCorpus Tatoeba wikimedia tico-19 navinaananthan_kurdish_sorani_parallel_corpusopenlanguagedata_flores_plusopenlanguagedata_flores_plusconfig.json: Hugging Face Transformers model configgeneration_config.json: default generation settingsmodel.safetensors: converted Marian weightssource.spm: source SentencePiece modeltarget.spm: target SentencePiece modelvocab.json: shared Marian vocabularytokenizer_config.json: tokenizer metadataspecial_tokens_map.json: tokenizer special token mapping1from transformers import MarianMTModel, MarianTokenizer
2
3tokenizer = MarianTokenizer.from_pretrained("your-user/en-ckb-marian")
4model = MarianMTModel.from_pretrained("your-user/en-ckb-marian")
5
6inputs = tokenizer("Hello world", return_tensors="pt")
7generated = model.generate(**inputs)
8print(tokenizer.decode(generated[0], skip_special_tokens=True))MarianMTModel format.