Getting DL4J

The most convenient way to get Deeplearning4j is through the Maven repository:

  1. Start a new Eclipse project and pick Maven Project, as shown in the following screenshot:

  1. Open the pom.xml file and add the following dependencies under the <dependencies> section:
<dependency> 
    <groupId>org.deeplearning4j</groupId> 
    <artifactId>deeplearning4j-nlp</artifactId> 
   <version>${dl4j.version}</version> 
</dependency> 
 
<dependency> 
    <groupId>org.deeplearning4j</groupId> 
    <artifactId>deeplearning4j-core</artifactId> 
    <version>${dl4j.version}</version> 
</dependency> 
  1. Finally, right-click on Project, select Maven, and pick Update project.

Get Machine Learning in Java - Second Edition 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.