[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-419535-105":59,"doc-detail-419535-en":131,"doc-similar-419535":163},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","transdocs-optical-character-recognition-with-word-to-word-translation","TransDocs - Optical Character Recognition with Word-to-Word Translation","","Research on OCR for document translation focuses on reducing OCR misfit words by integrating machine-learning techniques with an LSTM-based sequence-to-sequence model using attention. The pipeline performs word-by-word translation from OCR output to produce translated text aligned to the recognized input. Training and evaluation rely on the ANKI dataset for English-to-Spanish translation, with performance reported using BLEU-4. The paper targets researchers and practitioners interested in OCR applications in translation systems.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/transdocs-optical-character-recognition-with-word-to-word-translation/419535/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/transdocs-optical-character-recognition-with-word-to-word-translation/419535.png","ImageObject",300,407,{"name":92,"@type":93},"\tCallum ","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-09-28",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",11,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"How does the TransDocs pipeline address OCR misfit words?","Question",{"text":113,"@type":114},"It combines OCR output with an LSTM-based seq2seq model so the translation model can handle misrecognized words and produce word-by-word translations aligned to the OCR text.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What dataset is used for training and evaluation?",{"text":118,"@type":114},"The work is based on the ANKI dataset for English-to-Spanish translation, and it uses a text/image generator (TextRecognitionDataGenerator) with ground-truth pairs for OCR-related testing.",{"name":120,"@type":111,"acceptedAnswer":121},"How is translation quality measured?",{"text":122,"@type":114},"Model end-to-end performance is expressed using the BLEU-4 score.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},419535,1790741645,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":44,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},137451211410,"https://ap-avatar.wpscdn.com/avatar/2000bb0a9246f588df?x-image-process=image/resize,m_fixed,w_180,h_180&k=1786362646172706240","arXiv :2304 .07637v1 [ cs .CV] 15 Apr 2023  \nTransDocs: Optical Character Recognition with word  \nto word translation  \nAbhishek Bamotra Phani Krishna Uppala  \nCarnegie Mellon University Carnegie Mellon University  \n[abamotra@alumni.cmu.edu](abamotra@alumni.cmu.edu) [krishnaphaniiitg@gmail.com](krishnaphaniiitg@gmail.com)  \nAbstract  \nWhile OCR has been used in various applications, its output is not always accurate, leading to misﬁt words. This research work focuses on improving the optical character recognition (OCR) with ML techniques with integration of OCR with long short-term memory (LSTM) based sequence to sequence deep learning models to perform document translation. This work is based on ANKI dataset for English to Spanish translation. In this work, I have shown comparative study for pre-trained OCR while using deep learning model using LSTM-based seq2seq architecture with attention for machine translation. End-to-end performance of the model has been expressed in BLEU-4 score. This research paper is aimed at researchers and practitioners interested in OCR and its applications in document translation.  \n1 Introduction  \nThe Optical character recognition (OCR) has been widely used in various application scenarios, such as online education, toll gates operation, industrial automation and even robotics. OCR technique basically aims to recognize text from wide variety of images from scanned paper documents to text in wild. The technique has a long research history and has been recently achieved very good results in terms of accuracy. [5] In this project, I'm focusing on a new application of OCR technique by integrating an Long short-term memory (LSTM) based sequence to sequence deep learning model [9, 14] to perform document translation. This is a challenging pipeline to perform as the output from OCR model is not always correct and can produce misﬁts like 'C0de' for the original word'Code'.  \nI have trained a LSTM based model which can take inputs from OCR outputs which can have misﬁt words and the model should give word by word translation and show translation corresponding to the input given from the OCR output. I have used ANKI dataset [1] for training the translation model (English to Spanish) to train the baseline.  \nTo further enhance my performance on the misﬁt readings from the OCR, I have augmented the data by using OCR-output with ground-truth from the ANKI's converted pair. The dataset for the OCR testing and generating ground truth for the translation, I have used TextRecognitionDataGenerator [2, 8] which is a well known dataset generator for OCR model training. The text data generator randomly chooses words from a dictionary of a speciﬁc language or an input ﬁle or as in my case, choose from a translation pair (English-Spanish pair) . Then an image of those words has been generated by using different font, background, and modiﬁcations (skewing, blurring, background and distortion) as speciﬁed, along with the ground truth. Once the images are generated from the text generator, images are fed into the OCR model and the prediction are extracted.  \nThe predicted text is then mapped with the original text and hence, the translation. The ﬁnal output of the complete pipeline is the translation of the original image and can be presented as shown in ﬁgure 1, the result shown is an ideal case and shown to demonstrate the ﬁnal result. In this project, I have not worked very complete ANKI dataset, but only chose to work on a one language pair because of limited resources and very high training time for seq2seq models.  \nFigure 1: Example of output of the TransDocs pipeline for English to Spanish translation.  \n2 Background  \nOCR is one of the most important challenges in computer vision and many methods have been proposed over the recent years to tackle the problem. The OCR can be understood as a classiﬁcation task by considering each character of words and classify to the corresponding category. There have been various","cbCaigjA4fgoKv8R","https://ap.wps.com/l/cbCaigjA4fgoKv8R","pdf",1410101,"English","# Abstract\n# 1 Introduction\n# 2 Background\n# 3 Related work\n## 3.1 Optical Character Recognition","[{\"question\":\"How does the TransDocs pipeline address OCR misfit words?\",\"answer\":\"It combines OCR output with an LSTM-based seq2seq model so the translation model can handle misrecognized words and produce word-by-word translations aligned to the OCR text.\"},{\"question\":\"What dataset is used for training and evaluation?\",\"answer\":\"The work is based on the ANKI dataset for English-to-Spanish translation, and it uses a text/image generator (TextRecognitionDataGenerator) with ground-truth pairs for OCR-related testing.\"},{\"question\":\"How is translation quality measured?\",\"answer\":\"Model end-to-end performance is expressed using the BLEU-4 score.\"}]","TransDocs - Optical Character Recognition with Word-to-Word Translation | PDF",1790617418,23,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/10a03158ad4b8cc0e750e78dd879426b.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/b1c403891b38c056288540d4f7b1c09f.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/5b212e767f8bbab85e3d7cb903d3c094.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/3a006a7b752f8c32c78b3dc00d583ace.webp",980,1268,{"list":164,"token":66},[165,171,177,183,190,197,203,209,216,223],{"doc_id":166,"doc_title":167,"file_type":138,"home_preview_img_url":168,"slug":169,"view_count":56,"category_name":40,"create_tm":170},327685,"The Role of Prompt Language and Translation-Theory-Driven Prompts in Large Language Models - A Case Study on Spanish–Chinese Journalistic Translation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909340451/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796332379&Signature=mHPbks1R2N0Ba4Xn89iP8O8d2jA%3D","the-role-of-prompt-language-and-translation-theory-driven-prompts-in-large-language-models-a-case-study-on-spanishchinese-journalistic-translation",1789977808,{"doc_id":172,"doc_title":173,"file_type":138,"home_preview_img_url":174,"slug":175,"view_count":56,"category_name":40,"create_tm":176},140254,"Attention Is All You Need","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229865037842/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796332379&Signature=kasEnQJlfRQsEDWwCaBLBu9jV%2FM%3D","attention-is-all-you-need",1787571343,{"doc_id":178,"doc_title":179,"file_type":138,"home_preview_img_url":180,"slug":181,"view_count":52,"category_name":40,"create_tm":182},417200,"Vocabulary Manipulation for Neural Machine Translation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922268257/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796332379&Signature=ywLtMh0Y9%2FMIy5XPrb2S1pFZ6wU%3D","vocabulary-manipulation-for-neural-machine-translation",1790608391,{"doc_id":184,"doc_title":185,"file_type":138,"home_preview_img_url":186,"slug":187,"view_count":188,"category_name":40,"create_tm":189},82426,"Toward Real-Time Sentence-Level Sign Language Translation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808892111/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796332379&Signature=3g%2FtFn%2F%2B0NNDJ35GjKPyWfFItls%3D","toward-real-time-sentence-level-sign-language-translation",26,1784180322,{"doc_id":191,"doc_title":192,"file_type":138,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":40,"create_tm":196},420105,"Revisiting Locality Sensitive Hashing for Vocabulary Selection in Fast Neural Machine Translation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922317844/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796332379&Signature=LBh4HDHMHpHX6LDwX4709k4bpaU%3D","revisiting-locality-sensitive-hashing-for-vocabulary-selection-in-fast-neural-machine-translation",12,1790619516,{"doc_id":198,"doc_title":199,"file_type":138,"home_preview_img_url":200,"slug":201,"view_count":105,"category_name":40,"create_tm":202},489975,"An Optimized Approach for Handling Limited Vocabulary Constraints and Word Order Divergence in English-Urdu Neural Machine Translation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229927606068/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796332379&Signature=jvD3x%2F%2FmaAFgvOS2ABERwK4rKmo%3D","an-optimized-approach-for-handling-limited-vocabulary-constraints-and-word-order-divergence-in-english-urdu-neural-machine-translation",1790830820,{"doc_id":204,"doc_title":205,"file_type":138,"home_preview_img_url":206,"slug":207,"view_count":52,"category_name":40,"create_tm":208},418172,"Punjabi to English Bidirectional NMT System","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922514818/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796332379&Signature=AMdl2WehkMxD1spUClErGQ6zJQI%3D","punjabi-to-english-bidirectional-nmt-system",1790612258,{"doc_id":210,"doc_title":211,"file_type":138,"home_preview_img_url":212,"slug":213,"view_count":214,"category_name":40,"create_tm":215},426984,"The JHU Submission to the 2020 Duolingo Shared Task on Simultaneous Translation and Paraphrase for Language Education","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922702895/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796332379&Signature=ZkS63bFq9T%2F5moUt08USv9GBJO4%3D","the-jhu-submission-to-the-2020-duolingo-shared-task-on-simultaneous-translation-and-paraphrase-for-language-education",13,1790642420,{"doc_id":217,"doc_title":218,"file_type":138,"home_preview_img_url":219,"slug":220,"view_count":221,"category_name":40,"create_tm":222},273522,"An Investigation of Translationese in the Generations of Multilingual Large Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899945394/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796332379&Signature=Ek2kqCWpBap4CyTeV0OZmFS%2FBKw%3D","an-investigation-of-translationese-in-the-generations-of-multilingual-large-language-models",17,1789471857,{"doc_id":224,"doc_title":225,"file_type":138,"home_preview_img_url":226,"slug":227,"view_count":228,"category_name":40,"create_tm":229},124355,"Sentiment Analysis of Movie Reviews using Word Embeddings and Machine Learning Techniques","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229837295448/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796332379&Signature=dDz%2Bnr2pe1LqoeVZDbgLsfd4zHE%3D","sentiment-analysis-of-movie-reviews-using-word-embeddings-and-machine-learning-techniques",31,1785821801]