Provides a method to fix the markup of a segment.
The algorithm takes into account the segment's text and those of its siblings. These are all segments that share the same "bee segment id".
Therefore you may receive fixes for multiple segments in the results. If you are only interested in the fixes for the requested "sid" then simply disregard any results for other "sid" values.
The parameters are a JSON object included in the request body:
The scope object.
|sid||The segment id.||Mandatory|
The language. Note that you cannot have the markup of the source language text. Passing the source language will return an error.
Default is false.
If true then we allow the very same markup elements to appear multiple times in the translation.
A JSON with these properties:
An array of corrections.
If there are no fixes required, the array is empty.
The elements in "corrections" have this structure:
True if this is the correction for the segment passed to the method (that is method parameter "sid" is equal to property "sid" below)
|sid||The segment id.||int|
|bsid||The "bee segment id". This is always 0 for memories and termbases. All segments in the list of corrections share the exact same value.||int|
|bssid||The "bee subsegment id". This is always 0 for memories and termbases.||int|
|txtt||The translated text prior to correction||string|
|txttfixed||The translated text after correction||string|