AI4Bharat / IndicTrans2

Translation models for 22 scheduled languages of India
https://ai4bharat.iitm.ac.in/indic-trans2
MIT License
214 stars 59 forks source link

How to use this API for big Document translation? say about 1000 sentences in 1 go . #58

Closed Laishram009 closed 5 months ago

Laishram009 commented 5 months ago

I want to use this API for bulk level translation, how can i do, it will be very helpful for my studies.

jaygala24 commented 5 months ago

Please refer to our example.py script (reference) that supports both batch translation of sentences and paragraph translation using our HF-compatible IndicTrans2 models. You can adjust the batch size as per your GPUs.