Requesting Guidance on Understanding Source Code Details Related to the 'task' Option #1140
-
issueI'm currently working on a project and want to add some additional features, such as expanding the translation scope. The current version can translate from X to English, but I want to expand it to include translations to Chinese or other languages. However, when I started reading the source code for further learning, I found some code that is difficult to understand. Can you give me some advice as a developer?
thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The model is not trained for that; it occasionally does it when you set
|
Beta Was this translation helpful? Give feedback.
The model is not trained for that; it occasionally does it when you set
task="translate"andlanguageas the target language, but it's mostly due to imperfect language id in the training data, and it won't be very reliable."lang_id"was intended for the case just doing the language identification and no transcription, but it isn't very well tested or documented. It's not relevant for what you're trying to do, though.