Corpora

Creates segment representing the same line in two languages in a parallel corpus. (RPC)

Changed on

Run if documents inserted into the corpus are not aligned.

post/ca/api/corpora/align

Request

  • The document declares no server URL.
  • Auth: HTTP basic

Request body

alignstructstring

According to which structure the document should be aligned. Usually, /<s>.

autoboolean

True, when documents are not compiled. Sketch Engine will align them automatically.

corpus_idsinteger[]

Example request

{
  "alignstruct": "s",
  "auto": true,
  "corpus_ids": [
    842464,
    842463
  ]
}

Response

OK

resultboolean

Represent whether request was finished successfully or not.

errorstring

Unexpected server error. Example: QUOTA_EXCEEDED. If none Null.

Changes