Semantira

Semantira

  • Category: Text Analysis


Introduction

Are you looking for a powerful and easy-to-use natural language processing API? Look no further than Semantria! With Semantria, you can extract valuable insights from your text data with just a few lines of code. In this blog, we'll take a look at Semantria's public API documentation and provide example code in JavaScript.

Getting Started

Before we dive into the code, let's take a quick look at Semantria's API documentation. The documentation can be found at https://semantria.readme.io/docs. Here, you can find all the information you'll need to get started with the Semantria API. You can also get an API key by creating an account on the Semantria website.

Example Code

Now, let's take a look at some example code. In this example, we'll be using the Semantria Node.js package to make requests to the Semantria API.

const Semantria = require('semantria');
const semantria = new Semantria({
  consumerKey: 'YOUR_CONSUMER_KEY',
  consumerSecret: 'YOUR_CONSUMER_SECRET',
  useCompression: true
});

// Example sentiment analysis request
semantria.createDocument(
  {
    id: '1',
    text: 'I love this product!',
    language: 'English'
  },
  (err, res) => {
    if (err) {
      console.error(err);
      return;
    }
    console.log(res);
  }
);

// Example entity extraction request
semantria.createBatchDocuments(
  [
    {
      id: '1',
      text: 'I love Nike shoes and Adidas clothes',
      language: 'English'
    }
  ],
  { 
    language: 'English',
    documentType: 'text',
    processingMode: 'disambiguation',
    entityExtraction: {
      enabled: true,
      selectionPolicy: 'strict',
      entityThreshold: 0.05
    }
  },
  (err, res) => {
    if (err) {
      console.error(err);
      return;
    }
    console.log(res);
  }
);

In this example, we're using createDocument and createBatchDocuments methods to analyze sentiment and extract entities, respectively. These methods take a document or an array of documents as the first argument and a configuration object as the second argument. The configuration object contains parameters such as the language of the text, the type of document (text or HTML), and whether entity extraction should be enabled.

Conclusion

That's it for our brief introduction to Semantria's public API documentation and example code in JavaScript. With Semantria's powerful API, you can extract valuable insights from your text data with ease. Whether you're analyzing sentiment, extracting entities, or performing any other natural language processing task, Semantria has you covered.

Visit to Semantira website

Similar APIs of Text Analysis

Name Parser

Name Parser

Text Analysis

Name Parser is an API service that splits a complete name into useful information such as first name, last name, gender and nationality.

nameparsergender

Optical Character Recognition

Optical Character Recognition

Text Analysis

Analysis text from image. The free OCR API provides a simple way of parsing images and multi-page PDF documents (PDF OCR) and getting the extracted text results returned in a JSON format. The API can be used from any internet-connected device (desktop, mobile, iPhone, Android, Windows phone, refrigerator...). For even faster response times and guaranteed uptime PRO plans are available. In addition, we offer a locally (on-premise) installable version with our OCR.space Local Enterprise licenses.

OCRimgtext

Cloudmersive Natural Language Processing

Cloudmersive Natural Language Processing

Text Analysis

Natural language processing and text analysis. The most powerful and cost-effective NLP AI APIs, continuously updated. The most powerful and cost-effective NLP AI APIs, continuously updated. Automatically rephrase, or paraphrase an input sentence into alternate, gramatically correct text that preserves the original meaning. Automatically classify the sentiment of input text into Positive, Negative, or Neutral and a corresponding sentiment strength score. Identify the part of speech of words in a sentence. Pull out all the verbs, nouns, proper nouns, etc. from a sentence. Identify the true meaning. Fully parse a sentence into its constituent structure. Perform analytics over unstructured text to identify sentiment, key words and phrases, and much more. Identify the key entities that are referenced in unstructured text. Automatically detect the language of a text string across the world's 14 most popular languages.

translationrephrasingsentiment

Language Detection API

Language Detection API

Text Analysis

Detects text language. Language identification JSON webservice accepts text and returns detected language code and score. Detects 164 languages Fast, supports batching Supports short phrases and single words Secure

languagefastsupport

Google Cloud Natural

Google Cloud Natural

Text Analysis

Natural language understanding technologies to developers, including sentiment, entity, and syntax analysis. This API is part of the larger Cloud Machine Learning API family.

languagenaturalcloud

Aylien Text Analysis

Aylien Text Analysis

Text Analysis

A collection of information retrieval, and natural language APIs. A content analysis API used for collecting and analyzing news content at scale. An easy-to-use API used to perform a variety of complex NLP tasks on documents, reviews, social comments, or any other type of text. A user friendly platform that makes training custom NLP models easy.

analysissearchfeed

Watson Natural Language Understanding

Watson Natural Language Understanding

Text Analysis

Natural language processing for advanced text analysis. Analyze various features of text content at scale. Provide text, raw HTML, or a public URL and IBM Watson Natural Language Understanding will give you results for the features you request. The service cleans HTML content before analysis by default, so the results can ignore most advertisements and other unwanted content.

rawhtmlanalytics