How to use the Open Text Summarizer API?

I am currently creating a system that summarizes an article from a web page such as Wikipedia.

I can extract texts from web pages, and I know that the Open Text Summarizer API can help me generalize, but the problem is that I do not know how to use it correctly.

Please, anyone who knows how to use this library? Can you introduce me a simple example? I am currently running my project in C #.

+4
source share
1 answer

In codeplex . Did you read it?

Well, here is a sample from a Winform demo:

SummarizerArguments sumargs = new SummarizerArguments
                                          {
                                              DictionaryLanguage = "en",
                                              DisplayLines = sentCount,
                                              DisplayPercent = 0,
                                              InputFile = "",
                                              InputString = OriginalTextBox.Text // here your text
                                          };
SummarizedDocument doc = Summarizer.Summarize(sumargs);
string summary = string.Join("\r\n\r\n", doc.Sentences.ToArray());
// do some stuff with summary. It is your result.
+4
source

Source: https://habr.com/ru/post/1527483/


All Articles