第1章 - y-dyson-y/NLPwithScala GitHub Wiki

git clone git://github.com/y-dyson-y/NLPwithScala.git

sbt

console

scala> import book.Book

scala> Book.download

scala> val text = Book.getTexts text0: [Emma by Jane Austen 1816] text1: [Persuasion by Jane Austen 1818] text2: [Sense and Sensibility by Jane Austen 1811] text3: [The King James Bible] ...

scala> text(1) res1: breeze.data.Text = Observation { ids =[Persuasion by Jane Austen 1818], fe atures = Chapter 1 Sir Walter Elliot, of Kellynch Hall, in Somersetshire, wa s a man who, for his own amusement, never took up any book but the Baronetage; t here he found occupation for an idle hour, and consolation in a distressed one; there his faculties were roused into admiration and respect, by contemplating th