Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 966 Bytes

File metadata and controls

24 lines (18 loc) · 966 Bytes

OpenTextSummarizer

.Net Standard verison of OpenTextSummarizer forked from vrittis.

Usage

Basic

To use the original OpenTextSummarizer algorithm, just call the static Summarize method on the summarizer. You can pass content through a IContentProvider implementation. There are two implementations matching what existed in the original library, DirectTextContentProvider and FileContentProvider. The second argument is a ISummarizerArguments implementation, the default one being SummarizerArguments.

var summarizedDocument = OpenTextSummarizer.Summarizer.Summarize(
	new OpenTextSummarizer.FileContentProvider("TextualData\\AutomaticSummarization.txt"),
	new SummarizerArguments() 
	{
		Language = "en",
		MaxSummarySentences = 5
	});

Here is a Blog Post on how to use this package in your .NET project.