|
1 | | -// Copyright 2020 Google LLC |
| 1 | +// Copyright 2021 Google LLC |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
@@ -487,27 +487,6 @@ message Document { |
487 | 487 | string relation = 3; |
488 | 488 | } |
489 | 489 |
|
490 | | - // A translation of the text segment. |
491 | | - message Translation { |
492 | | - // Provenance of the translation. |
493 | | - // Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a |
494 | | - // single `TextAnchor.text_segments` element. If the start and |
495 | | - // end index of the text segment are the same, the text change is inserted |
496 | | - // before that index. |
497 | | - TextAnchor text_anchor = 1; |
498 | | - |
499 | | - // The BCP-47 language code, such as "en-US" or "sr-Latn". For more |
500 | | - // information, see |
501 | | - // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. |
502 | | - string language_code = 2; |
503 | | - |
504 | | - // Text translated into the target language. |
505 | | - string translated_text = 3; |
506 | | - |
507 | | - // The history of this annotation. |
508 | | - repeated Provenance provenance = 4; |
509 | | - } |
510 | | - |
511 | 490 | // Text reference indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. |
512 | 491 | message TextAnchor { |
513 | 492 | // A text segment in the [Document.text][google.cloud.documentai.v1beta3.Document.text]. The indices may be out of bounds |
@@ -724,10 +703,6 @@ message Document { |
724 | 703 | // Relationship among [Document.entities][google.cloud.documentai.v1beta3.Document.entities]. |
725 | 704 | repeated EntityRelation entity_relations = 8; |
726 | 705 |
|
727 | | - // A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, |
728 | | - // translations in this list may cross shard boundaries. |
729 | | - repeated Translation translations = 12; |
730 | | - |
731 | 706 | // A list of text corrections made to [Document.text]. This is usually |
732 | 707 | // used for annotating corrections to OCR mistakes. Text changes for a given |
733 | 708 | // revision may not overlap with each other. |
|
0 commit comments