DewiBrynJones
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -19,7 +19,7 @@ A'i defnyddio fel hyn...
|
|
19 |
from sacremoses import MosesTruecaser
|
20 |
from huggingface_hub import hf_hub_download
|
21 |
|
22 |
-
tc_model_path = hf_hub_download(repo_id="
|
23 |
mtr = MosesTruecaser(tc_model_path)
|
24 |
|
25 |
capitalized_str = mtr.truecase("mae pwllheli yn dref ym mhen llŷn", return_str=True)
|
|
|
19 |
from sacremoses import MosesTruecaser
|
20 |
from huggingface_hub import hf_hub_download
|
21 |
|
22 |
+
tc_model_path = hf_hub_download(repo_id="techiaith/sacremoses-truecaser-cy", filename="tc.model")
|
23 |
mtr = MosesTruecaser(tc_model_path)
|
24 |
|
25 |
capitalized_str = mtr.truecase("mae pwllheli yn dref ym mhen llŷn", return_str=True)
|