Find keywords and keyphrases that identify main topics

Useful linguistic manipulation of text: identify text components, document's main topics, summary & more.
Pingar Pingar
Useful linguistic manipulation of text: identify text components, document's main topics, summary & more.
Find alternative search terms
GetKeywords
input: string[] Documents, enum DocumentFormat
output: Keywords[] KeywordsResult

Takes as an input a list of Documents and their DocumentFormat : text or URL. Keywords are then generated from the document contents, and then returned as keywords and their scores.

See also Query-based keywords.

Sample code in C#:

PingarAPIRequest request = new PingarAPIRequest();
request.AppID = "your app id";
request.AppKey = "your app key";
request.TextAnalysis = new TextAnalysisRequest();
request.TextAnalysis.Documents = new string[] { "document text" };
request.TextAnalysis.DocumentsFormat = DocumentFormat.Text;
request.Language = Language.EN;

PingarAPIServiceSoapClient pingarAPI = new PingarAPIServiceSoapClient();
PingarAPIResponse response = pingarAPI.GetKeywords(request);
int count = 0;
if (response.Error == null)
{
    foreach (Keywords document in response.TextAnalysis.KeywordsResult)
    {
        Console.WriteLine("Keywords for the document " + count);
        foreach (Keyword keyword in document.keywords)
        {
            Console.WriteLine(keyword.Title + " " + keyword.Score);
        }
        count++;
    }
}

 

Explore Pingar