Module crowdin_api.api_resources.machine_translation_engines.resource
Classes
class EnterpriseMachineTranslationEnginesResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)-
Resource for Machine Translation Engines (Crowdin Enterprise).
Machine Translation Engines (MTE) are the sources for pre-translations.
Use API to add, update, and delete specific MTE.
Link to documentation: https://support.crowdin.com/developer/enterprise/api/v2/#tag/Machine-Translation-Engines
Ancestors
Methods
def add_mt(self, name: str, type: MachineTranslationEngineType, credentials: Union[MachineTranslationEngineApiKeyCredentials, MachineTranslationEngineGoogleAutoMLCredentials, MachineTranslationEngineMicrosoftCredentials, MachineTranslationEngineAmazonCredentials, MachineTranslationEngineCustomMTCredentials], groupId: Optional[int] = None, enabledLanguageIds: Optional[Iterable[str]] = None, enabledProjectIds: Optional[Iterable[int]] = None, isEnabled: Optional[bool] = None)-
Add MT.
Link to documentation: https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.mts.post
def delete_mt(self, mtId: int)-
Delete MT.
Link to documentation: https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.mts.delete
def edit_mt(self, mtId: int, data: Iterable[MachineTranslationEnginePatchRequest])-
Edit MT.
Link to documentation: https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.mts.patch
def list_mts(self, limit: Optional[int] = None, offset: Optional[int] = None, groupId: Optional[int] = None)-
List MTs.
:param groupId: Group Identifier. Set 0 to see MTs of root group
Link to documentation: https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.mts.getMany
Inherited members
class MachineTranslationEnginesResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)-
Resource for Machine Translation Engines.
Machine Translation Engines (MTE) are the sources for pre-translations.
Use API to add, update, and delete specific MTE.
Link to documentation: https://support.crowdin.com/developer/api/v2/#tag/Machine-Translation-Engines
Ancestors
Subclasses
Methods
def get_mt(self, mtId: int)-
Get MT.
Link to documentation: https://support.crowdin.com/developer/api/v2/#operation/api.mts.get
def get_mts_path(self, mtId: Optional[int] = None)def list_mts(self, limit: Optional[int] = None, offset: Optional[int] = None)-
List MTs.
Link to documentation: https://support.crowdin.com/developer/api/v2/#operation/api.mts.getMany
def translate_via_mt(self, mtId: int, targetLanguageId: str = None, languageRecognitionProvider: Optional[LanguageRecognitionProvider] = None, sourceLanguageId: Optional[str] = None, strings: Optional[Iterable[str]] = None)-
Create Translate via MT.
Link to documentation: https://support.crowdin.com/developer/api/v2/#operation/api.mts.translations.post