Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Description
Sends segments to the TermTagger to find and mark terms from the loaded TBX file.

Batchsize: Multiple segments can be tagged by one call, as bigger the batch size as longer needs the answer. A optimal batch size is somewhere between 5 and 25 Segments, also depending on the segment size.

Request

curl -X POST "http://<host>:9001/termTagger/termTag/"   -H "Content-Type: application/json"   -H "x-tbxid: 2b412073d5185fa4b8d7831e0ee6472d"   -d '{
    "tbxFile": "2b412073d5185fa4b8d7831e0ee6472d",
    "sourceLang": "en",
    "targetLang": "en",
    "segments": [
      {
        "id": "387278",
        "field": "targetEdit",
        "source": "Outstanding features",
        "target": "Outstanding features"
      }
    ],
    "debug": 0,
    "fuzzy": 0,
    "stemmed": 1,
    "fuzzyPercent": 70,
    "maxWordLengthSearch": 2,
    "minFuzzyStartLength": 2,
    "minFuzzyStringLength": 5,
    "targetStringMatch": 0,
    "task": "{a4393eb5-46a7-4f5e-ba1a-70873c74a7a6}"
  }'

...