Text Similarity

Find the most similar text files within a collection of documents

Algorithmia Platform License
apl

Run an Example

[
  {
    "document1": "doc1",
    "document2": "doc2",
    "similarity": 0.6825611979794715
  },
  {
    "document1": "doc2",
    "document2": "doc3",
    "similarity": 0.1303428532021811
  },
  {
    "document1": "doc1",
    "document2": "doc3",
    "similarity": 0.057146844312582934
  }
]

Install & Use

Use

curl -X POST -d '{"files": [["doc1", "this is an example input"], ["doc2", "this is another example input"], ["doc3", "the third document is not like the others"]]}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/PetiteProgrammer/TextSimilarity/1.0.0