PetiteProgrammer

PetiteProgrammer / TextSimilarity / 1.0.0

Text Similarity

20 Credit Royalty
Find the most similar text files within a collection of documents
Language
Python 3.x
Metrics
API Calls - 86,914 Avg call duration - 1.00sec
Permissions
The Algorithm Platform License is the set of terms that are stated in the Software License section of the Algorithmia Application Developer and API License Agreement. It is intended to allow users to reserve as many rights as possible without limiting Algorithmia's ability to run it as a service. Learn More

Run an Example

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

Install and Use

Install

Install the Algorithmia CLI client by running:

curl -sSLf https://algorithmia.com/install.sh | sh

Then authenticate by running:

algo auth
# Enter API Key: YOUR_API_KEY
CLI Install Docs

Use



algo run PetiteProgrammer/TextSimilarity/1.0.0 -d '{"files": [["doc1", "this is an example input"], ["doc2", "this is another example input"], ["doc3", "the third document is not like the others"]]}' --timeout 300
  
CLI Docs