-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using stopes with an unseen language #16
Comments
the laser3 encoder will project your text into an embedding space that is language independent. The way that mining works is that it aligns projections of the sentences from the src_lang into that space, with projections of the sentences from the tgt_lang into that space. This works because they are projected in the same language independent space and we can compute a distance between the embeddings of each sentences. If you use a different encoder, it will probably not project into a compatible space. |
Thanks, will try it with laser3. What should I indicate in tgt_lang for the unseen language? |
You can assign any name you want to the new language. If this name is Also, you need to make sure that the mining config is correctly showing how to find source files for that language. In case of using the demo config (
Finally, you will need to add the path to your custom encoder (and its vocabulary, if it is also custom) to the |
Hi @sete-nay, out of curiosity what is your |
Hi @heffernankevin, my tgt_lang is Circassian (Kabardian) and not a part of laser2 or 3, unfortunately. Thanks for the hint, will look into laser encoder training or otherwise just use a simpler tool. My goal is to create parallel corpus that can be used for finetuning NLLB or another multilingual model on Circassian language. |
Hi,
I'm trying to clean and preprocess bitext for finetuning NLLB on a new unseen language. The source language is a part of laser3, the target language is not included. Will it work if I replace laser3 with BPE encoder pre-trained on my target language?
Thank you!
python -m stopes.pipelines.bitext.global_mining_pipeline src_lang=fuv tgt_lang=zul demo_dir=.../stopes-repo/demo +preset=demo output_dir=. embed_text=laser3
The text was updated successfully, but these errors were encountered: