relretrieval API References

POST /docs

Post each documents

Include the text text in the body:

{
  "article_id": 1,
  "text": "The tech company Soundcloud is based in Berlin, capital of Germany."
}

===

{
  "status": "ok"
}

POST /start

Start BREADS iterations

Include options:

{
  "max_iter": 10
}

===

{
  "status": "ok"
}

GET /relations?query=CEO

Gets clusters including "CEO" as a relations word

===

{
  "clusters": [
    {
      "relations": [
        {
          "BEF": "",
          "BET": "is CEO of",
          "AFT": "",
          "tuples": [
            {
              "first": "Larry Page",
              "second": "Google"
            }
          ]
        }
      ]
    }
  ]
}