Page tree
Skip to end of metadata
Go to start of metadata

Description

Enables the usage of third party TM and MT systems in translate5. To support a MT / TM ti must be implement as a service in translate5. This is quite easy and usually a matter of days. Please contact us, if you need help on this.

Moses MT, OpenTM2, Google, Lucy, MS Translator, SdlLanguageCloud and NEC-TM (as Plugin) are supported so far. For SDL GroupShare support please ask MittagQI.

TM/MT systems (or in general language resource) can be associated to tasks. In such tasks the user gets automatically found matches to the segments he is editing.

Also a concordance search is provided.

Provides access to the data of the configured language resources (TM,MT and termcollections).

URL:

/editor/languageresourceinstance/[ID]

Available Methods:

GET / POST / PUT / DELETE

Specialities:

Non filebased langauge resource can only be added by the "admin" role. Users with the role "pm" can add filebased entries.

Special URLs

URLMethodsParametersDescription

/editor/languageresourceinstance/[ID]/query

GET

segmentId: integer; the id of the segment to be queried

returns a list with query results, format see below
/editor/languageresourceinstance/[ID]/searchGET / POST

query: string; the string to be searched in the underlying service
field: string; source or target, determines which field should be searched in a TM
limit: integer; how many results should be returned

returns a list with search results, format see below
/editor/languageresourceinstance/[ID]/downloadGET-Returns the uploaded TM file - if any.
/editor/languageresourceinstance/[ID]/importPOSTtmUpload: TM file uploaded as multipart/form-dataImports the given TM file into the chosen Language Resource instance
/editor/languageresourceinstance/[ID]/tasksGET / POST

GET:
id: ID of the task language resource assocation
taskGuid: TaskGuid of the associated task
taskName: name of the associated task
state: status of the associated task
lockingUser: user who is locking of the associated task - if any
taskNr: task nr of the associated task
languageResourceId: associated TM ID

POST:
toReImport: an array of taskGuids. The chosen tasks segment data is reimported into the selected TM.

Gives some status information about the tasks associated to a specific Language Resource.

Triggers a reimport of the chosen tasks into the TM.

Search / Query result format

Name

Type

Info

attributes

string

Additional meta data of the returned match/search result, empty if not available.

createddateMeta data, creation time stamp of the returned match/search result

creator

string

Meta data, creator of the returned match/search result

lastEditeddateMeta data, last edited time stamp of the returned match/search result
lastEditorstringMeta data, last editor of the returned match/search result

matchrate

integer

matchrate of a found match, 0 for search results.

source

string

The found source text.

state

string

"loaded" wenn all is OK, "servererror" when we got an error in the queried service.

target

string

The found target text.

languageResourceIdstring

The queried Language Resource, just for reference.


Langauge-Resource Instance Resource Layout

Name

Type

Info

id

integer

GET only

entityVersionintegerGET only, set by server

name

string

Custom name of the match resource.

sourceLangintegerGET / POST, non editable after creation; numeric DB id of the language
targetLangintegerGET / POST, non editable after creation; numeric DB id of the language

color

string

Custom color of the match resource in hexadecimal form, used in the GUI.

resourceId

string

POST / GET, non editable after creation

serviceType

string

POST / GET, only, set by setting a resourceId

serviceName

string

GET only, set by setting a resourceId

fileNamestring

POST / GET, can not be changed

filebasedbooleanGET only, set by setting a resourceId
searchablebooleanGET only, set by setting a resourceId



Configuration of the Language Resources

Config name

Values

Default

Description

runtimeOptions.LanguageResources.preloadedTranslationSegments

integer3Number of segments for which matches are preloaded (cached) in the front-end.
runtimeOptions.LanguageResources.moses.serverjson array[ ]Moses MT related: List of available Moses Server, example: ["http://www.translate5.net:8124/RPC2"]
runtimeOptions.LanguageResources.moses.matchrateinteger, 0 - 10070

Moses MT related: Moses MT penalty value, used as default matchrate since in MT no matchrate is available.



  • No labels