Class: Aws::Translate::Types::TerminologyData
- Inherits:
-
Struct
- Object
- Struct
- Aws::Translate::Types::TerminologyData
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-translate/types.rb
Overview
When making an API call, you may pass TerminologyData data as a hash:
{
file: "data", # required
format: "CSV", # required, accepts CSV, TMX, TSV
directionality: "UNI", # accepts UNI, MULTI
}
The data associated with the custom terminology.
Constant Summary collapse
- SENSITIVE =
[:file]
Instance Attribute Summary collapse
-
#directionality ⇒ String
The directionality of your terminology resource indicates whether it has one source language (uni-directional) or multiple (multi-directional).
-
#file ⇒ String
The file containing the custom terminology data.
-
#format ⇒ String
The data format of the custom terminology.
Instance Attribute Details
#directionality ⇒ String
The directionality of your terminology resource indicates whether it has one source language (uni-directional) or multiple (multi-directional).
UNI
: The terminology resource has one source language (for example, the
first column in a CSV file), and all of its other languages are
target languages.
MULTI
: Any language in the terminology resource can be the source
language or a target language. A single multi-directional
terminology resource can be used for jobs that translate different
language pairs. For example, if the terminology contains terms in
English and Spanish, then it can be used for jobs that translate
English to Spanish and jobs that translate Spanish to English.
When you create a custom terminology resource without specifying the directionality, it behaves as uni-directional terminology, although this parameter will have a null value.
1294 1295 1296 1297 1298 1299 1300 |
# File 'lib/aws-sdk-translate/types.rb', line 1294 class TerminologyData < Struct.new( :file, :format, :directionality) SENSITIVE = [:file] include Aws::Structure end |
#file ⇒ String
The file containing the custom terminology data. Your version of the AWS SDK performs a Base64-encoding on this field before sending a request to the AWS service. Users of the SDK should not perform Base64-encoding themselves.
1294 1295 1296 1297 1298 1299 1300 |
# File 'lib/aws-sdk-translate/types.rb', line 1294 class TerminologyData < Struct.new( :file, :format, :directionality) SENSITIVE = [:file] include Aws::Structure end |
#format ⇒ String
The data format of the custom terminology.
1294 1295 1296 1297 1298 1299 1300 |
# File 'lib/aws-sdk-translate/types.rb', line 1294 class TerminologyData < Struct.new( :file, :format, :directionality) SENSITIVE = [:file] include Aws::Structure end |