Python Code Prediction

Next word/sequence prediction for Python code

Algorithmia Platform License

Run an Example

[
  [
    "absolute_import",
    0.42914995551109314
  ],
  [
    "unicode_literals",
    0.41967511177062994
  ],
  [
    "(",
    0.061538971960544586
  ],
  [
    "print_function",
    0.05814435705542565
  ],
  [
    "division",
    0.030695699155330658
  ]
]

Install & Use

Use

curl -X POST -d '{"code": "from __future__ import", "num_results": 5}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/PetiteProgrammer/pythoncodeprediction/1.0.4