The automatic summarization of a document can be a useful feature for many applications. In this recipe, we will examine how this can be done using code found at https://github.com/piravp/auto-summarizer. We will show you how to use the techniques supported by the project and explain how the summary is performed.
Summarizing text in a document
Getting ready
To prepare this recipe, we need to do the following:
- Create a new Java project
- Rename your package main.java
- Download the files from https://github.com/piravp/auto-summarizer
- Extract the files to a convenient location
- Copy the source files from the directory C:\...\auto-summarizer-master\src\main\java and add them to the main.java package
- Create a directory called files...