Skip to content

Latest commit

 

History

History
155 lines (104 loc) · 3.13 KB

advanced-ap-is.md

File metadata and controls

155 lines (104 loc) · 3.13 KB

Advanced AP Is

Advanced text processing APIs

advanced_ap_is_controller = client.advanced_ap_is

Class Name

AdvancedAPIsController

Methods

Get Classification

Stemmer : Defintion and it's usage

Languages covered:

def get_classification(self,
                      body)

Parameters

Parameter Type Tags Description
body object Body, Required Add a JSON Input as per the schema defined below

Response Type

Responseclassify

Example Usage

body = jsonpickle.decode('{"key1":"val1","key2":"val2"}')

result = advanced_ap_is_controller.get_classification(body)

Errors

HTTP Status Code Error Description Exception Class
400 Error output ErrorsException
426 Please use HTTPS protocol ApiClassify426ErrorException

Get QA

Stemmer : Defintion and it's usage

Languages covered:

def get_qa(self,
          body=None)

Parameters

Parameter Type Tags Description
body object Body, Optional Add a JSON Input as per the schema defined below

Response Type

ApiQaResponse

Example Usage

result = advanced_ap_is_controller.get_qa()

Example Response (as JSON)

{
  "score": 0.028566665947437286,
  "start": 0,
  "end": 20,
  "answer": "உப்பு, புளி, மிளகாய்"
}

Errors

HTTP Status Code Error Description Exception Class
400 Bad Request ErrorsException
426 Please use HTTPS protocol M426ErrorException

Get NER

Stemmer : Defintion and it's usage

Languages covered:

def get_ner(self,
           body=None)

Parameters

Parameter Type Tags Description
body object Body, Optional Add a JSON Input as per the schema defined below

Response Type

List of ApiNerResponse

Example Usage

result = advanced_ap_is_controller.get_ner()

Example Response (as JSON)

[
  {
    "entity_group": "PER",
    "word": "محمد",
    "start": "4",
    "end": "9"
  },
  {
    "entity_group": "LOC",
    "word": "برلين",
    "start": "18",
    "end": "24"
  }
]

Errors

HTTP Status Code Error Description Exception Class
400 Bad Request ErrorsException
426 Please use HTTPS protocol M426ErrorException