Skip to content

Latest commit

 

History

History
338 lines (238 loc) · 11.5 KB

PosTaggerApi.md

File metadata and controls

338 lines (238 loc) · 11.5 KB

cloudmersive_nlp_api_client.PosTaggerApi

All URIs are relative to https://api.cloudmersive.com

Method HTTP request Description
pos_tagger_tag_adjectives POST /nlp-v2/pos/tag/adjectives Part-of-speech tag a string, filter to adjectives
pos_tagger_tag_adverbs POST /nlp-v2/pos/tag/adverbs Part-of-speech tag a string, filter to adverbs
pos_tagger_tag_nouns POST /nlp-v2/pos/tag/nouns Part-of-speech tag a string, filter to nouns
pos_tagger_tag_pronouns POST /nlp-v2/pos/tag/pronouns Part-of-speech tag a string, filter to pronouns
pos_tagger_tag_sentence POST /nlp-v2/pos/tag/sentence Part-of-speech tag a string
pos_tagger_tag_verbs POST /nlp-v2/pos/tag/verbs Part-of-speech tag a string, filter to verbs

pos_tagger_tag_adjectives

PosResponse pos_tagger_tag_adjectives(request)

Part-of-speech tag a string, filter to adjectives

Part-of-speech (POS) tag a string, find the adjectives, and return result as JSON

Example

from __future__ import print_function
import time
import cloudmersive_nlp_api_client
from cloudmersive_nlp_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = cloudmersive_nlp_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Apikey'] = 'Bearer'

# create an instance of the API class
api_instance = cloudmersive_nlp_api_client.PosTaggerApi(cloudmersive_nlp_api_client.ApiClient(configuration))
request = cloudmersive_nlp_api_client.PosRequest() # PosRequest | Input string

try:
    # Part-of-speech tag a string, filter to adjectives
    api_response = api_instance.pos_tagger_tag_adjectives(request)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PosTaggerApi->pos_tagger_tag_adjectives: %s\n" % e)

Parameters

Name Type Description Notes
request PosRequest Input string

Return type

PosResponse

Authorization

Apikey

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

pos_tagger_tag_adverbs

PosResponse pos_tagger_tag_adverbs(request)

Part-of-speech tag a string, filter to adverbs

Part-of-speech (POS) tag a string, find the adverbs, and return result as JSON

Example

from __future__ import print_function
import time
import cloudmersive_nlp_api_client
from cloudmersive_nlp_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = cloudmersive_nlp_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Apikey'] = 'Bearer'

# create an instance of the API class
api_instance = cloudmersive_nlp_api_client.PosTaggerApi(cloudmersive_nlp_api_client.ApiClient(configuration))
request = cloudmersive_nlp_api_client.PosRequest() # PosRequest | Input string

try:
    # Part-of-speech tag a string, filter to adverbs
    api_response = api_instance.pos_tagger_tag_adverbs(request)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PosTaggerApi->pos_tagger_tag_adverbs: %s\n" % e)

Parameters

Name Type Description Notes
request PosRequest Input string

Return type

PosResponse

Authorization

Apikey

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

pos_tagger_tag_nouns

PosResponse pos_tagger_tag_nouns(request)

Part-of-speech tag a string, filter to nouns

Part-of-speech (POS) tag a string, find the nouns, and return result as JSON

Example

from __future__ import print_function
import time
import cloudmersive_nlp_api_client
from cloudmersive_nlp_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = cloudmersive_nlp_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Apikey'] = 'Bearer'

# create an instance of the API class
api_instance = cloudmersive_nlp_api_client.PosTaggerApi(cloudmersive_nlp_api_client.ApiClient(configuration))
request = cloudmersive_nlp_api_client.PosRequest() # PosRequest | Input string

try:
    # Part-of-speech tag a string, filter to nouns
    api_response = api_instance.pos_tagger_tag_nouns(request)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PosTaggerApi->pos_tagger_tag_nouns: %s\n" % e)

Parameters

Name Type Description Notes
request PosRequest Input string

Return type

PosResponse

Authorization

Apikey

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

pos_tagger_tag_pronouns

PosResponse pos_tagger_tag_pronouns(request)

Part-of-speech tag a string, filter to pronouns

Part-of-speech (POS) tag a string, find the pronouns, and return result as JSON

Example

from __future__ import print_function
import time
import cloudmersive_nlp_api_client
from cloudmersive_nlp_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = cloudmersive_nlp_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Apikey'] = 'Bearer'

# create an instance of the API class
api_instance = cloudmersive_nlp_api_client.PosTaggerApi(cloudmersive_nlp_api_client.ApiClient(configuration))
request = cloudmersive_nlp_api_client.PosRequest() # PosRequest | Input string

try:
    # Part-of-speech tag a string, filter to pronouns
    api_response = api_instance.pos_tagger_tag_pronouns(request)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PosTaggerApi->pos_tagger_tag_pronouns: %s\n" % e)

Parameters

Name Type Description Notes
request PosRequest Input string

Return type

PosResponse

Authorization

Apikey

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

pos_tagger_tag_sentence

PosResponse pos_tagger_tag_sentence(request)

Part-of-speech tag a string

Part-of-speech (POS) tag a string and return result as JSON

Example

from __future__ import print_function
import time
import cloudmersive_nlp_api_client
from cloudmersive_nlp_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = cloudmersive_nlp_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Apikey'] = 'Bearer'

# create an instance of the API class
api_instance = cloudmersive_nlp_api_client.PosTaggerApi(cloudmersive_nlp_api_client.ApiClient(configuration))
request = cloudmersive_nlp_api_client.PosRequest() # PosRequest | Input string

try:
    # Part-of-speech tag a string
    api_response = api_instance.pos_tagger_tag_sentence(request)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PosTaggerApi->pos_tagger_tag_sentence: %s\n" % e)

Parameters

Name Type Description Notes
request PosRequest Input string

Return type

PosResponse

Authorization

Apikey

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

pos_tagger_tag_verbs

PosResponse pos_tagger_tag_verbs(request)

Part-of-speech tag a string, filter to verbs

Part-of-speech (POS) tag a string, find the verbs, and return result as JSON

Example

from __future__ import print_function
import time
import cloudmersive_nlp_api_client
from cloudmersive_nlp_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = cloudmersive_nlp_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Apikey'] = 'Bearer'

# create an instance of the API class
api_instance = cloudmersive_nlp_api_client.PosTaggerApi(cloudmersive_nlp_api_client.ApiClient(configuration))
request = cloudmersive_nlp_api_client.PosRequest() # PosRequest | Input string

try:
    # Part-of-speech tag a string, filter to verbs
    api_response = api_instance.pos_tagger_tag_verbs(request)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PosTaggerApi->pos_tagger_tag_verbs: %s\n" % e)

Parameters

Name Type Description Notes
request PosRequest Input string

Return type

PosResponse

Authorization

Apikey

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]