GroupDocs Translation offers real-time machine translation for the global world. Thus, it is very important that the translated document carefully preserves the structure and layout of the original document. It is designed to look the same on any device, including the structure and styles. PDF is the de facto standard for the information exchange between businesses, organizations, scientists and individuals. It serves as a tool for expanding language accessibility and promoting content sharing in French-speaking communities.Online PDF document translation from Thai to English Lastly, the ThFrTranslator class specializes in translating text from Thai to French. Model is from Language Technology Research Group at the University of Helsinki ThFrTranslator ( use_gpu : bool = False, pretrained : str = 'Helsinki-NLP/opus-mt-th-fr' ) Translate text from Chinese to Thai Parameters :įrom anslate import ZhThTranslator zhth = ZhThTranslator () zhth. _init_ ( use_gpu : bool = False, pretrained : str = 'Lalita/marianmt-zh_cn-th' ) → None translate ( text : str ) → str It assists in making content accessible to Thai-speaking audiences by converting Chinese text into Thai. The ZhThTranslator class is designed for translating text from Chinese (Simplified) to Thai. ZhThTranslator ( use_gpu : bool = False, pretrained : str = 'Lalita/marianmt-zh_cn-th' ) Translate text from Thai to Chinese Parameters :įrom anslate import ThZhTranslator thzh = ThZhTranslator () thzh. _init_ ( use_gpu : bool = False, pretrained : str = 'Lalita/marianmt-th-zh_cn' ) → None translate ( text : str ) → str This class is valuable for bridging language gaps between these two languages, promoting cross-cultural communication. The ThZhTranslator class specializes in translating text from Thai to Chinese (Simplified). ThZhTranslator ( use_gpu : bool = False, pretrained : str = 'Lalita/marianmt-th-zh_cn' ) Translate text from English to Thai Parameters :įrom anslate import ThEnTranslator then = ThEnTranslator () then. _init_ ( use_gpu : bool = False ) translate ( text : str ) → str It offers a range of methods for translating sentences and text, enabling accurate and meaningful translations between these languages. The EnThTranslator class specializes in translating text from English to Thai. :param bool use_gpu : load model using GPU (Default is False) EnThTranslator ( use_gpu : bool = False ) įrom VISTEC-depa Thailand Artificial Intelligence Research Institute It ensures that the required models are accessible for translation tasks, enhancing the usability of the module. This function facilitates the download of all available English to Thai translation models. download_model_all ( ) → None ĭownload all translation models in advance Translated text in target language Return type : Text ( str) – input text in source language Returns : load_model ( ) translate ( text ) → str It uses small100 model.įrom anslate import Translate th2en = Translate ( 'th', 'en' ) th2en. Xx - th - xx to Thai (xx is language code). ![]() Th - xx - Thai to xx (xx is language code). Small100 - A multilingual machine translation model (covering 100 languages) Use_gpu ( bool) – load model using GPU (Default is False)ĭefault - The default engine for each language. _init_ ( src_lang : str, target_lang : str, engine : str = 'default', use_gpu : bool = False ) → None Parameters :Įngine ( str) – machine translation engine It acts as a coordinator, directing translation requests to specific language pairs and models. The Translate class is the central component of the module, offering a unified interface for various translation tasks. Translate ( src_lang : str, target_lang : str, engine : str = 'default', use_gpu : bool = False ) It provides tools for translating text between different languages, making it a valuable resource for natural language processing tasks. The anslate module is dedicated to machine translation capabilities for the PyThaiNLP library.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |