Assigned
Status Update
Comments
si...@google.com <si...@google.com> #2
I have informed our engineering team of this feature request. There is currently no ETA for its implementation.
A current workaround would be to check the returned "boundingPoly" [1] "vertices" for the returned "textAnnotations". If the calculated rectangle's heights > widths, than your image is sideways.
[1]https://cloud.google.com/vision/reference/rest/v1/images/annotate#boundingpoly
A current workaround would be to check the returned "boundingPoly" [1] "vertices" for the returned "textAnnotations". If the calculated rectangle's heights > widths, than your image is sideways.
[1]
Description
This will create a public issue which anybody can view and comment on.
Please provide as much information as possible. At least, this should include a description of your issue and steps to reproduce the problem. If possible please provide a summary of what steps or workarounds you have already tried, and any docs or articles you found (un)helpful.
Problem you have encountered: An extra word("la nota") is being generated when translating from EN to IT using glossaries.
What you expected to happen:
Source text: "We received the Agency Debit Memo (ADM) for reissued ticket #[ticket number]"
Observed result: "Abbiamo ricevuto la nota di Agency Debit Memo (ADM) per il biglietto riemesso #[numero biglietto]"
Expected: "Abbiamo ricevuto di Agency Debit Memo (ADM) per il biglietto riemesso #[numero biglietto]"
Steps to reproduce:
curl --request POSThttps://translation.googleapis.com/v3/projects/cso-pso-experiments/locations/us-central1:translateText
--url
--header 'Authorization: token'
--header 'Content-Type: application/json'
--data '{ "sourceLanguageCode": "en", "targetLanguageCode": "it", "mimeType": "text/plain", "contents": [ "We received the Agency Debit Memo (ADM) for reissued ticket #[ticket number]" ], "glossaryConfig": { "glossary": "projects/894683665182/locations/us-central1/glossaries/compiled_en_it_2022_09_01T12_01_04" } }'
Result: { "translations": [ { "translatedText": "Abbiamo ricevuto la nota di addebito dell'agenzia (ADM) per il biglietto riemesso #[numero biglietto]" } ], "glossaryTranslations": [ { "translatedText": "Abbiamo ricevuto la nota di Agency Debit Memo (ADM) per il biglietto riemesso #[numero biglietto]", "glossaryConfig": { "glossary": "projects/894683665182/locations/us-central1/glossaries/compiled_en_it_2022_09_01T12_01_04" } } ] }
Other information (workarounds you have tried, documentation consulted, etc):