Git Product home page Git Product logo

le-ai's Introduction

LE-AI

linguistic expansion by LE-AI expert.ai simplyfied API

To use the LE-AI the light expert AI simplified API you need to register as a developer on the expert.ai site

In this way you get the username, that is your email, and the password.

These two pieces of information are the only ones needed to be able to use the simplified API.

For now LE-AI is in PHP code but I hope others will join together to create their equivalent in other languages.

To use LE-AI read the documentation inside the code.

The release of the LE-AI is under the MIT license.

FEATURES AND FUNCTIONALITY

Of all the possibilities provided by the expert.ai API, the most significant have been isolated for simplification

  1. generate the authorization token only if necessary and automatically, always using the latest available and active

  2. this is the list of variables used thanks to the simplified API, minimum 8, maximum 11:

    $eai_language // the used language

    $eai_content // the content text

    $eai_mainSentences // the main sentence (if exist more sentences)

    $eai_knowledge // the type of knowledge

    $eai_mainLemmas // the main lemma

    $eai_mainLemmas1 // the second main lemma (if exist)

    $eai_mainPhrases // the main phrase

    $eai_mainSyncons // the main syncon

    $eai_mainSyncons1 // the second main syncon (if exist)

    $eai_sentiment // the sentiment (float number from 0 to 100)

    $eai_topic // the topic

RESERVED INFORMATION --- Modify the content of variables:

$eai_usrn= 'CHANGE_WITH_YOUR_EMAIL'; // your developer username is email

$eai_pswd= 'CHANGE_WITH_YOUR_PASSWORD'; // your developer password

SECURITY SETTING --- Get certificate

Enable mod_ssl in Apache and php_openssl.dll in php.ini (uncomment them by removing ; at the beginning).

get certificate located in https://curl.se/ca/cacert.pem

save the file cacert.pem in the same directory of php program

SETTING --- Modify the content of variables for production:

$devmod= true; // true for develop mode false for production mode

TEXT TO ELABORATE

$toanalyze= 'what is the best idea to make more money?'; // phrase to analyze

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.