Open Text Summarizer

The open text summarizer is an open source command line tool for summarizing texts. The program reads a text and generates a summary. By default, the summarizer tries to reduce the text size down to 20%, for a this short text about python for instance, the summary would contain only the highlighted text.

Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.
Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together.
Python’s simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance.
Python supports modules and packages, which encourages program modularity and code reuse.
The Python interpreter and the extensive standard library are available in source or binary form without charge for all major platforms, and can be freely distributed. Often, programmers fall in love with Python because of the increased productivity it provides.
Since there is no compilation step, the edit-test-debug cycle is incredibly fast.
Debugging Python programs is easy: a bug or bad input will never cause a segmentation fault.
Instead, when the interpreter discovers an error, it raises an exception.
When the program doesn’t catch the exception, the interpreter prints a stack trace.
A source level debugger allows inspection of local and global variables, evaluation of arbitrary expressions, setting breakpoints, stepping through the code a line at a time, and so on.
The debugger is written in Python itself, testifying to Python’s introspective power.
On the other hand, often the quickest way to debug a program is to add a few print statements to the source: the fast edit-test-debug cycle makes this simple approach very effective.

It’s interface is pretty simple:

1

2

3

4

5

6

7

8

9

10

11

12

Usage:

ots[OPTION...][file.txt|stdin]-Open Text Summarizer

Help Options:

-?,--helpShow help options

Application Options:

-r,--ratio=&lt;int&gt;summarization%[default=20%]

-d,--dic=&lt;string&gt;dictionary touse

-o,--out=&lt;string&gt;output file[default=stdout]

-h,--htmloutput ashtml

-k,--keywordsonly output keywords

-a,--aboutonly output the summary

-v,--versionshow version information

Installation on Linux

Some Linux distributions come with OTS already pre-installed and otherwise the installation is very straight forward. For CentOS, the ots package can be found via rpmfind and deployed like so:

While OTS version 5.0.x was installed, running the tool still reports an older version number.

1

2

3

ots-v

ots0.4.2

Installation on OS X (including 10.9 Mavericks)

Installing OTS on a OS X is more involved, but can be done in about 10 to 15 minutes. The following steps require that XTools or XTools’s command-line tools are installed already.
1. Install Home Brew and some libs needed to build OTS