All URIs are relative to https://v2.namsor.com/NamSorAPIv2
Method | HTTP request | Description |
---|---|---|
name_type | GET /api2/json/nameType/{properNoun} | Infer the likely type of a proper noun (personal name, brand name, place name etc.) |
name_type_batch | POST /api2/json/nameTypeBatch | Infer the likely common type of up to 100 proper nouns (personal name, brand name, place name etc.) |
name_type_geo | GET /api2/json/nameTypeGeo/{properNoun}/{countryIso2} | Infer the likely type of a proper noun (personal name, brand name, place name etc.) |
name_type_geo_batch | POST /api2/json/nameTypeGeoBatch | Infer the likely common type of up to 100 proper nouns (personal name, brand name, place name etc.) |
ProperNounCategorizedOut name_type(proper_noun)
Infer the likely type of a proper noun (personal name, brand name, place name etc.)
- Api Key Authentication (api_key):
from __future__ import print_function
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = openapi_client.Configuration()
configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
# create an instance of the API class
api_instance = openapi_client.GeneralApi(openapi_client.ApiClient(configuration))
proper_noun = 'proper_noun_example' # str |
try:
# Infer the likely type of a proper noun (personal name, brand name, place name etc.)
api_response = api_instance.name_type(proper_noun)
pprint(api_response)
except ApiException as e:
print("Exception when calling GeneralApi->name_type: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
proper_noun | str |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BatchProperNounCategorizedOut name_type_batch(batch_name_in=batch_name_in)
Infer the likely common type of up to 100 proper nouns (personal name, brand name, place name etc.)
- Api Key Authentication (api_key):
from __future__ import print_function
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = openapi_client.Configuration()
configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
# create an instance of the API class
api_instance = openapi_client.GeneralApi(openapi_client.ApiClient(configuration))
batch_name_in = openapi_client.BatchNameIn() # BatchNameIn | A list of proper names (optional)
try:
# Infer the likely common type of up to 100 proper nouns (personal name, brand name, place name etc.)
api_response = api_instance.name_type_batch(batch_name_in=batch_name_in)
pprint(api_response)
except ApiException as e:
print("Exception when calling GeneralApi->name_type_batch: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
batch_name_in | BatchNameIn | A list of proper names | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProperNounCategorizedOut name_type_geo(proper_noun, country_iso2)
Infer the likely type of a proper noun (personal name, brand name, place name etc.)
- Api Key Authentication (api_key):
from __future__ import print_function
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = openapi_client.Configuration()
configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
# create an instance of the API class
api_instance = openapi_client.GeneralApi(openapi_client.ApiClient(configuration))
proper_noun = 'proper_noun_example' # str |
country_iso2 = 'country_iso2_example' # str |
try:
# Infer the likely type of a proper noun (personal name, brand name, place name etc.)
api_response = api_instance.name_type_geo(proper_noun, country_iso2)
pprint(api_response)
except ApiException as e:
print("Exception when calling GeneralApi->name_type_geo: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
proper_noun | str | ||
country_iso2 | str |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BatchProperNounCategorizedOut name_type_geo_batch(batch_name_geo_in=batch_name_geo_in)
Infer the likely common type of up to 100 proper nouns (personal name, brand name, place name etc.)
- Api Key Authentication (api_key):
from __future__ import print_function
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = openapi_client.Configuration()
configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
# create an instance of the API class
api_instance = openapi_client.GeneralApi(openapi_client.ApiClient(configuration))
batch_name_geo_in = openapi_client.BatchNameGeoIn() # BatchNameGeoIn | A list of proper names (optional)
try:
# Infer the likely common type of up to 100 proper nouns (personal name, brand name, place name etc.)
api_response = api_instance.name_type_geo_batch(batch_name_geo_in=batch_name_geo_in)
pprint(api_response)
except ApiException as e:
print("Exception when calling GeneralApi->name_type_geo_batch: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
batch_name_geo_in | BatchNameGeoIn | A list of proper names | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]