Java Reference
In-Depth Information
Newsgroups
comp.os.ms-windows.misc sci.electronics
comp.sys.ibm.pc.hardware sci.med
comp.sys.mac.hardware
sci.space
comp.windows.x
misc.forsale
rec.autos
talk.politics.misc
rec.motorcycles
talk.politics.guns
rec.sport.baseball
talk.politics.mideast
rec.sport.hockey
talk.religion.misc
alt.atheism
Classifying text using LingPipe
To classify text, we will use the
DynamicLMClassifier
class'
classify
method.
We will demonstrate its use with two different text sequences:
first complete sentence
Martin_Luther
where we use the first sentence of the second paragraph
These strings are declared here:
String forSale =
"Finding a home for sale has never been "
+ "easier. With Homes.com, you can search new "
+ "homes, foreclosures, multi-family homes, "
+ "as well as condos and townhouses for sale. "
+ "You can even search our real estate agent "