Skip to content

Cloudmersive/Cloudmersive.APIClient.Python.NLP

Repository files navigation

cloudmersive_nlp_api_client

The powerful Natural Language Processing APIs (v2) let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text.

This Python package provides a native API client for Cloudmersive NLP

  • API version: v1
  • Package version: 4.0.1
  • Build package: io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import cloudmersive_nlp_api_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import cloudmersive_nlp_api_client

Getting Started

Please follow the installation procedure and then run the following:

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.AnalyticsApi(cloudmersive_nlp_api_client.ApiClient(configuration))
input = cloudmersive_nlp_api_client.HateSpeechAnalysisRequest() # HateSpeechAnalysisRequest | Input hate speech analysis request

try:
    # Perform Hate Speech Analysis and Detection on Text
    api_response = api_instance.analytics_hate_speech(input)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AnalyticsApi->analytics_hate_speech: %s\n" % e)

Documentation for API Endpoints

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

Class Method HTTP request Description
AnalyticsApi analytics_hate_speech POST /nlp-v2/analytics/hate-speech Perform Hate Speech Analysis and Detection on Text
AnalyticsApi analytics_profanity POST /nlp-v2/analytics/profanity Perform Profanity and Obscene Language Analysis and Detection on Text
AnalyticsApi analytics_sentiment POST /nlp-v2/analytics/sentiment Perform Sentiment Analysis and Classification on Text
AnalyticsApi analytics_similarity POST /nlp-v2/analytics/similarity Perform Semantic Similarity Comparison of Two Strings
AnalyticsApi analytics_subjectivity POST /nlp-v2/analytics/subjectivity Perform Subjectivity and Objectivity Analysis on Text
ExtractEntitiesApi extract_entities_post POST /nlp-v2/extract-entities Extract entities from string
LanguageDetectionApi language_detection_get_language POST /nlp-v2/language/detect Detect language of text
LanguageTranslationApi language_translation_translate_deu_to_eng POST /nlp-v2/translate/language/deu/to/eng Translate German to English text with Deep Learning AI
LanguageTranslationApi language_translation_translate_eng_to_deu POST /nlp-v2/translate/language/eng/to/deu Translate English to German text with Deep Learning AI
LanguageTranslationApi language_translation_translate_eng_to_fra POST /nlp-v2/translate/language/eng/to/fra Translate English to French text with Deep Learning AI
LanguageTranslationApi language_translation_translate_eng_to_rus POST /nlp-v2/translate/language/eng/to/rus Translate English to Russian text with Deep Learning AI
LanguageTranslationApi language_translation_translate_fra_to_eng POST /nlp-v2/translate/language/fra/to/eng Translate French to English text with Deep Learning AI
LanguageTranslationApi language_translation_translate_rus_to_eng POST /nlp-v2/translate/language/rus/to/eng Translate Russian to English text with Deep Learning AI
ParseApi parse_parse_string POST /nlp-v2/parse/tree Parse string to syntax tree
PosTaggerApi pos_tagger_tag_adjectives POST /nlp-v2/pos/tag/adjectives Part-of-speech tag a string, filter to adjectives
PosTaggerApi pos_tagger_tag_adverbs POST /nlp-v2/pos/tag/adverbs Part-of-speech tag a string, filter to adverbs
PosTaggerApi pos_tagger_tag_nouns POST /nlp-v2/pos/tag/nouns Part-of-speech tag a string, filter to nouns
PosTaggerApi pos_tagger_tag_pronouns POST /nlp-v2/pos/tag/pronouns Part-of-speech tag a string, filter to pronouns
PosTaggerApi pos_tagger_tag_sentence POST /nlp-v2/pos/tag/sentence Part-of-speech tag a string
PosTaggerApi pos_tagger_tag_verbs POST /nlp-v2/pos/tag/verbs Part-of-speech tag a string, filter to verbs
RephraseApi rephrase_english_rephrase_sentence_by_sentence POST /nlp-v2/rephrase/rephrase/eng/by-sentence Rephrase, paraphrase English text sentence-by-sentence using Deep Learning AI
SegmentationApi segmentation_get_sentences POST /nlp-v2/segmentation/sentences Extract sentences from string
SegmentationApi segmentation_get_words POST /nlp-v2/segmentation/words Get words in input string
SpellcheckApi spellcheck_check_sentence POST /nlp-v2/spellcheck/check/sentence Check if sentence is spelled correctly
SpellcheckApi spellcheck_correct_json POST /nlp-v2/spellcheck/check/word Find spelling corrections

Documentation For Models

Documentation For Authorization

Apikey

  • Type: API key
  • API key parameter name: Apikey
  • Location: HTTP header

Author

About

Python client for Cloudmersive NLP API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages