GetSentences input: string[] Documents, enum DocumentFormat output: string[] SentencesResult
Takes as an input a list of Documents and their DocumentFormat : text or URL.
Document content is then analyzed and annotated in xml with sentence and paragraph structure.
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.GetSentences(request);
int count = 0;
if (response.Error == null)
{
foreach (string analyzedMarkup in response.TextAnalysis.SentencesResult)
{
Console.WriteLine("Analyzed Markup for the document " + count);
Console.WriteLine(analyzedMarkup);
count++;
}
}