TextGuru is a text processing library that can be used to do summarization, categorization, key phrase generation, part of speech tagging, identification of place and human names in input text, and sentence boundary detection on a variety of documents (Microsoft Word™, Microsoft PowerPoint™, PDF™, OpenOffice.org Writer, AbiWord™, HTML, and plain text.)
Categorize text
Sample Code: com.thoughtworks.textguru.demo.CategorizeText
Input: Pope Benedict XVI gave Catholics four new saints Sunday,bestowing the honor on a 19th century num who struggled inthe American frontier, a bishop who tended to the wounded during the Mexican Revolution and two Italian clergy.
Output: Category: Topics
RELIGION/0.20419356
LABOUR/0.118358545
EMPLOYMENT/LABOUR/0.100239664
Category: Industries
Category: Regions
MEXICO/0.06033347
SOUTH AFRICA/0.03143076
ITALY/0.027779384
Key Phrases
Sample Code: com.thoughtworks.textguru.demo.GetKeyPhrases
Input: A strong earthquake shook Hawaii early yesterday. The quake hit at 7:07 a.m. local time, 10 miles north-northwest of Kailua Kona. Blakeman said there was no risk of a Pacific-wide tsunami.
Output:
Blakeman said there was no risk of a Pacific-wide tsunami. : 2951.6514
A strong earthquake shook Hawaii early yesterday. : 1570.203
The quake hit at 7 : 7 a.m. local time, 10 miles north-northwest of Kailua Kona. : 542.39716
Human and Places
Sample Code: com.thoughtworks.textguru.demo.HumanAndPlaceNames
Input: A strong earthquake shook Hawaii early yesterday. The quake hit at 7:07 a.m. local time, 10 miles north-northwest of Kailua Kona. Blakeman said there was no risk of a Pacific-wide tsunami.
Output:
Human names:
Place names: Hawaii:1, Kailua:1
Summary
Sample Code: com.thoughtworks.textguru.demo.GetSummary
Input: A strong earthquake shook Hawaii early yesterday. The quake hit at 7:07 a.m. local time, 10 miles north-northwest of Kailua Kona. Blakeman said there was no risk of a Pacific-wide tsunami.
Output:
Input text: A strong earthquake shook Hawaii early yesterday. The quake hit at 7:07 a.m.local time, 10 miles north-northwest of Kailua Kona. Blakeman said there was no risk of a Pacific-wide tsunami.
Summary: Blakeman said there was no risk of a Pacific-wide tsunami.
Document Indexing and Search
Sample Code:
com.thoughtworks.textguru.demo.DocumentDirectoryManager
com.thoughtworks.textguru.demo.DocumentSearch