LDA Mapper

Maps LDA topics to documents

(no tags)

Algorithmia Platform License

Run an Example

{
  "topic_distribution": [
    {
      "doc": "machine intelligence is the future",
      "freq": {
        "0": 0.5,
        "1": 0.5,
        "2": 0,
        "3": 0
      }
    },
    {
      "doc": "computer science students are in demand and they know it",
      "freq": {
        "0": 0.25,
        "1": 0,
        "2": 0.7500000000000001,
        "3": 0
      }
    },
    {
      "doc": "I for one welcome our new machine overlords",
      "freq": {
        "0": 0.5,
        "1": 0,
        "2": 0,
        "3": 0.5
      }
    },
    {
      "doc": "the machines are taking over, and they’ve even got human names",
      "freq": {
        "0": 0.2,
        "1": 0,
        "2": 0.6000000000000001,
        "3": 0.2
      }
    },
    {
      "doc": "superintelligent AI will takeover and rise",
      "freq": {
        "0": 0,
        "1": 0,
        "2": 0.6666666666666666,
        "3": 0.3333333333333333
      }
    }
  ]
}

Install & Use

Use

curl -X POST -d '{
  "topics": [
    {"science": 1, "machine": 1},
    {"future": 1},
    {
      "taking": 1,
      "demand": 1,
      "human": 1,
      "students": 1,
      "takeover": 1,
      "names": 1,
      "computer": 1,
      "superintelligent": 1
    },
    {"rise": 1, "machines": 1, "overlords": 1}
  ],
  "docsList": [
    "machine intelligence is the future",
    "computer science students are in demand and they know it",
    "I for one welcome our new machine overlords",
    "the machines are taking over, and they’ve even got human names",
    "superintelligent AI will takeover and rise"
  ]
}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/nlp/LDAMapper/0.1.1