Document Classifier

Classify english documents

Algorithmia Platform License · Internet Access · Calls Other Algorithms

Run an Example

{
  "text": "Attention-based neural encoder-decoder frameworks have been widely adopted for image captioning. Most methods force visual attention to be active for every generated word. However, the decoder likely requires little to no visual information from the image to predict non-visual words such as the and of. Other words that may seem visual can often be predicted reliably just from the language model e.g., sign after behind a red stop or phone following talking on a cell.",
  "topN": [
    {
      "prediction": "language",
      "confidence": 0.2066967636346817
    },
    {
      "prediction": "deep learning",
      "confidence": 0.2053375542163849
    },
    {
      "prediction": "world war 2",
      "confidence": 0.20009714365005493
    },
    {
      "prediction": "solar",
      "confidence": 0.19612550735473633
    },
    {
      "prediction": "biological",
      "confidence": 0.19174303114414215
    }
  ]
}

Install & Use

Use

curl -X POST -d '{  
   "data":[{
            "text":"Attention-based neural encoder-decoder frameworks have been widely adopted for image captioning. Most methods force visual attention to be active for every generated word. However, the decoder likely requires little to no visual information from the image to predict non-visual words such as the and of. Other words that may seem visual can often be predicted reliably just from the language model e.g., sign after behind a red stop or phone following talking on a cell."
         }],
   "namespace":"data://nlp/arxiv_model",
   "mode":"predict"
}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/nlp/DocumentClassifier/0.3.2