nlpapiv2
Project description
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
- CheckSentenceRequest
- CheckSentenceResponse
- CheckWordRequest
- CheckWordResponse
- CorrectWordInSentence
- Entity
- ExtractEntitiesRequest
- ExtractEntitiesResponse
- GetWordsRequest
- GetWordsResponse
- HateSpeechAnalysisRequest
- HateSpeechAnalysisResponse
- LanguageDetectionRequest
- LanguageDetectionResponse
- LanguageTranslationRequest
- LanguageTranslationResponse
- ParseRequest
- ParseResponse
- PosRequest
- PosResponse
- PosSentence
- PosTaggedWord
- ProfanityAnalysisRequest
- ProfanityAnalysisResponse
- RephraseRequest
- RephraseResponse
- RephrasedSentence
- RephrasedSentenceOption
- SentenceSegmentationRequest
- SentenceSegmentationResponse
- SentimentAnalysisRequest
- SentimentAnalysisResponse
- SimilarityAnalysisRequest
- SimilarityAnalysisResponse
- SubjectivityAnalysisRequest
- SubjectivityAnalysisResponse
- WordPosition
Documentation For Authorization
Apikey
- Type: API key
- API key parameter name: Apikey
- Location: HTTP header
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cloudmersive_nlp_api_client-4.0.1.tar.gz
.
File metadata
- Download URL: cloudmersive_nlp_api_client-4.0.1.tar.gz
- Upload date:
- Size: 37.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9863d1fc4b25fa40fd6a5b2446354ef9e41b50d9f06a59a7a4d5fdf9dbf373a |
|
MD5 | a8dd5034b97039ec0322824f18c4e222 |
|
BLAKE2b-256 | 880452e83e1243654da7e492f3c0d6ed0eceecb91529efe6726be3a8cc59e104 |