Natural Language Processing
Introduction
Language Processing or Natural Langugage Processing
allow you to extract meaningful part of human
language by the means of NLP algorithm.
Currently this api is only supported for
ENGLISH
language, but soon we will be adding multiple languagesEndpoint
Post
  https://api.oyyi.xyz/v1/ml/language-processingContent-Type: application/json
Parameters
text Required
- Type:
string
- Details: english language text is required to extract data.
- Type:
param
You can,
seperated parameter to include during natural language processing. You can read about this in detail over google.- Type:
label
,lemma
,pos
,dep
,is_stop
,is_alpha
,is_email
,ent_type
,ent_loc
,morph
- Default: default value is
ent_type,pos,is_stop
- Type:
remove_stop
Stop words are those words which don't have any particular meaning inside the sentence- Type:
boolean
- Default:
false
- Type:
Example
Python
import requestsurl = $BASE_URL/ml/language-processingtoken = 'your_bearer_token_here'headers = {'Authorization': f'Bearer {token}'}data = { "text": 'i used to go for Taj mahal but now i dont go there.', "param": 'label,lemma,pos,dep,is_stop,is_alpha,is_email,ent_type,ent_loc,morph' };response = requests.post(url,params=data, headers=headers)print(response.text)
Response
Default
{ "data": [ { "text": "Taj", "ent_type": "GPE", "pos": "PROPN", "is_stop": false }, { "text": "mahal", "ent_type": "", "pos": "NOUN", "is_stop": false }, { "text": "nt", "ent_type": "", "pos": "PART", "is_stop": false }, { "text": ".", "ent_type": "", "pos": "PUNCT", "is_stop": false } ]}
Table of Contents