danielfrg

danielfrg / word2vec / 0.4.1

word2vec

10 Credit Royalty
word2vec functions for similarity and analogies
Language
Python 3.x
Metrics
API Calls - 2,938 Avg call duration - 39.01sec
Permissions
The Apache License is a permissive free software license written by the Apache Software Foundation (ASF). Learn More

Run an Example

Input
Output
[
  [
    "dogs",
    0.8680489915680536
  ],
  [
    "puppy",
    0.8106428352360294
  ],
  [
    "pit_bull",
    0.7803960342611623
  ],
  [
    "pooch",
    0.7627376737257423
  ],
  [
    "cat",
    0.7609457299277049
  ]
]

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
# When prompted for api endpoint, hit enter
# When prompted for API key, enter your key: YOUR_API_KEY
CLI Install Docs

Use



    algo run danielfrg/word2vec/0.4.1 -d '{
  "predict": {
    "similar": {
      "word": "dog", "n": 5
    }
  }
}
  ' --timeout 300
  
CLI Docs