AIsuru Docs
AIsuru API
AIsuru API
  • Introduzione
  • Engine
    • ChatLogs
    • ContextVars
    • CorrelationPairs
    • CustomDictionary
    • Dialog
    • EventLogs
    • ExpertReferences
    • Functions
    • Intents
    • LocalizationKeys
    • Media
    • Memories
    • NLP
    • People
    • Search
    • Session
    • Stats
    • Topics
    • UnansweredQuestions
    • User
    • WebHooks
    • Models
  • Backend
    • ActionLog
    • Analysis
    • Asset
    • Badge
    • CompletionConfig
    • ConsumptionLog
    • ImportExport
    • Integration
    • Invitation
    • Memori
    • MemoriList
    • Notification
    • Process
    • Tenant
    • User
    • Models
Powered by GitBook
On this page
  1. Engine

NLP

PreviousMemoriesNextPeople

Looks up the vector definition for a word.

get
Path parameters
strSessionIDstringRequired

The session ID

wordstringRequired

Word to be looked up

Responses
200
Success
application/json
get
GET /memori/v2/WordVector/{strSessionID}/{word} HTTP/1.1
Host: 
Accept: */*
200

Success

{
  "vector": [
    1
  ],
  "requestID": 1,
  "requestDateTime": "2025-06-07T18:21:30.688Z",
  "resultCode": 1,
  "resultMessage": "text"
}

Searches for the 10 words most semantically similar words to the specified word.

get
Path parameters
strSessionIDstringRequired

The session ID

wordstringRequired

Word to be searcher for

Responses
200
Success
application/json
get
GET /memori/v2/SimilarWords/{strSessionID}/{word} HTTP/1.1
Host: 
Accept: */*
200

Success

{
  "similarWords": [
    "text"
  ],
  "requestID": 1,
  "requestDateTime": "2025-06-07T18:21:30.688Z",
  "resultCode": 1,
  "resultMessage": "text"
}
  • GETLooks up the vector definition for a word.
  • GETSearches for the 10 words most semantically similar words to the specified word.
  • POSTTries to guess the language of a sentence by analyzing keyword occurrences.
  • POSTComputes the similarity between a reference and a comparison sentences.
  • POSTChecks the words of a sentence for their definition in the word vector dictionary.
  • POSTChecks a sentence for NSFW content.

Tries to guess the language of a sentence by analyzing keyword occurrences.

post
Path parameters
strSessionIDstringRequired

The session ID

Body

Specifications for requests requiring a sentence.

textstring | nullableOptional

Text of the sentence. Required.

Responses
200
Success
application/json
post
POST /memori/v2/GuessLanguage/{strSessionID} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "text": "text"
}
200

Success

{
  "languageGuesses": {
    "ANY_ADDITIONAL_PROPERTY": 1
  },
  "requestID": 1,
  "requestDateTime": "2025-06-07T18:21:30.688Z",
  "resultCode": 1,
  "resultMessage": "text"
}

Computes the similarity between a reference and a comparison sentences.

post
Path parameters
strSessionIDstringRequired

The session ID

Body

Specifications for requests requiring a two sentences.

referenceTextstring | nullableOptional

Text of the reference sentence. Required.

referenceTextTypestring | nullableOptional

Type of reference text, i.e. question or answer. Required. Only types supported are: QUESTION ANSWER

comparisonTextstring | nullableOptional

Text of the comparison sentence. Required.

comparisonTextTypestring | nullableOptional

Type of comparison text, i.e. question or answer. Required. Only types supported are: QUESTION ANSWER

Responses
200
Success
application/json
post
POST /memori/v2/ComputeSimilarity/{strSessionID} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 103

{
  "referenceText": "text",
  "referenceTextType": "text",
  "comparisonText": "text",
  "comparisonTextType": "text"
}
200

Success

{
  "similarity": 1,
  "similarityLevel": "text",
  "requestID": 1,
  "requestDateTime": "2025-06-07T18:21:30.688Z",
  "resultCode": 1,
  "resultMessage": "text"
}

Checks the words of a sentence for their definition in the word vector dictionary.

post
Path parameters
strSessionIDstringRequired

The session ID

Body

Specifications for requests requiring a sentence.

textstring | nullableOptional

Text of the sentence. Required.

Responses
200
Success
application/json
post
POST /memori/v2/CheckWords/{strSessionID} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "text": "text"
}
200

Success

{
  "undefinedWords": [
    "text"
  ],
  "requestID": 1,
  "requestDateTime": "2025-06-07T18:21:30.688Z",
  "resultCode": 1,
  "resultMessage": "text"
}

Checks a sentence for NSFW content.

post

This API requires a Giver session.

Path parameters
strSessionIDstringRequired

The session ID

Body

Specifications for requests requiring a sentence.

textstring | nullableOptional

Text of the sentence. Required.

Responses
200
Success
application/json
post
POST /memori/v2/CheckNSFW/{strSessionID} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "text": "text"
}
200

Success

{
  "nsfw": true,
  "requestID": 1,
  "requestDateTime": "2025-06-07T18:21:30.688Z",
  "resultCode": 1,
  "resultMessage": "text"
}