Google Guava

Google Guava is very similar to Apache Commons; it is a set of utilities that extend the standard Java API and make life easier. But unlike Apache Commons, Google Guava is one library that covers many areas at once, including collections and I/O.

To include it in a project, use dependency:

<dependency>   <groupId></groupId>   <artifactId>guava</artifactId>   <version>19.0</version> </dependency>

We will start with the Guava I/O module. To give an illustration, we will use some generated data. We already used the word class, which contains a token and its part-of-speech tag, and here we will generate more words. To do that, we can use a data generation tool such as Let's define the ...

Get Mastering Java for Data Science now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.