GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Go to Leanpub.comLeanpub
  • Authors
  • Readers
  • Topics
  • Services
  • GhostAI
  • AudiobookAI
  • TranslateAI
  • CourseAI
  • ImportAI
  • IndexAI
  • AccessibilityAI
  • GhostAI Accelerator
  • Publish on Amazon

This view

  • Original page
  • New address

GeezerVison is showing leanpub.com — Practical Artificial Intelligence Programming With Java

About
  1. About
  2. Author
  3. Contents
Practical Artificial Intelligence Programming With Java

Practical Artificial Intelligence Programming With Java

Minimum price

Free!

$15.00

You pay

Author earns

$

✦Also available for 1 book credit with a Reader Membership

About

About the Book

This book covers a variety of topics dealing with Artificial Intelligence, Large Language Models, Neural Networks and Deep Learning, Information Gathering, and two new chapters on the Semantic Web (and one previous chapter on the Semantic Web that has been heavily modified)

The book example code is dual licenced under the Apache 2 and GPL 3 licenses. You may want to look at the book example programs at the github repository for this book before purchasing this book.


Share this book

Categories

Computers and Programming

Feedback

Contact the author

Author

About the Author

Mark Watson

Interested in the author? If you are then visit Mark's web site and read his blog.

Mark Watson is a consultant who works out of his home office in Sedona Arizona. His consulting customer list includes: Google, CompassLabs, Disney, Arctan Group, Sitescout.com, Embed.ly, and Webmind Corporation.

The Leanpub Podcast

Podcast

Podcast Episode

Contents

Table of Contents

Preface

  1. Requests from the Author
  2. Personal Artificial Intelligence Journey
  3. Maven Setup for Combining Examples in this Book
  4. Acknowledgements

Search

  1. Representation of Search State Space and Search Operators
  2. Finding Paths in Mazes
  3. Finding Paths in Graphs
  4. Adding Heuristics to Breadth-first Search
  5. Heuristic Search and Game Playing: Tic-Tac-Toe and Chess
  6. Optional Practice Problems

Using the OpenAI Large Language Model APIs in Java

  1. OpenAI API and Java SDK Versions (October 2026)
  2. Java Library to Use OpenAI’s APIs
  3. Example Applications
  4. Extraction of Facts and Relationships from Text Data
  5. Using LLMs to Summarize Text
  6. Optional Practice Problems

Using the Google Gemini Large Language Model APIs in Java

  1. Gemini API and SDK Versions (October 2026)
  2. Java Library to Use Google Gemini’s APIs
  3. Example Applications
  4. Wrap Up
  5. Optional Practice Problems

Using Local LLMs with Ollama in Java Applications

  1. Ollama Versions and Models (October 2026)
  2. Advantages of Using Local LLMs with Ollama
  3. Applications of Local LLMs with Ollama
  4. Java Library to Use Ollama’s REST API
  5. Example Using the Library
  6. Extraction of Facts and Relationships from Text Data
  7. Using LLMs to Summarize Text
  8. Optional Practice Problems

LangChain for Java as an Abstraction for Different Large Language Models

  1. LangChain4j Versions (October 2026)
  2. Why Use an Abstraction Layer?
  3. Maven Project Setup
  4. Implementation: The OllamaLlmLangChain4j Class
  5. Prompt Templates: Two-Shot Entity Extraction
  6. Test Examples
  7. Running the Examples
  8. Wrap Up
  9. Optional Practice Problems

AgentScope Agent Oriented Framework.

  1. AgentScope Versions and the Gemini Model (October 2026)
  2. Using the Java Implementation of AgentScope: Hello World
  3. Using the Java Implementation of AgentScope: Tool Use
  4. Wrap Up: From Simple Chat to Autonomous Tool Use
  5. Optional Practice Problems

Anomaly Detection Machine Learning Example

  1. Motivation for Anomaly Detection
  2. Math Primer for Anomaly Detection
  3. AnomalyDetection Utility Class
  4. Example Using the University of Wisconsin Cancer Data
  5. Optional Practice Problems

Genetic Algorithms

  1. Theory
  2. Java Library for Genetic Algorithms
  3. Finding the Maximum Value of a Function
  4. Optional Practice Problems

Neural Networks

  1. Road Map for the Neural Network Example Code
  2. Backpropagation Neural Networks
  3. A Java Class Library for Back Propagation
  4. Adding Momentum to Speed Up Back-Prop Training
  5. Wrap-up for Neural Networks
  6. Optional Practice Problems

Natural Language Processing

  1. Overview of the NLP Library and Running the Examples
  2. Tokenizing, Stemming, and Part of Speech Tagging Text
  3. Named Entity Extraction From Text
  4. Automatically Assigning Categories to Text
  5. Text Clustering
  6. Wrapup
  7. Optional Practice Problems

Information Gathering

  1. Web Scraping Examples
  2. Web Spidering Using the Jericho Library
  3. Client for GeoNames Service
  4. Wrap-up for Information Gathering
  5. Optional Practice Problems

Resolve Entity Names to DBPedia References

  1. DBPedia Entities
  2. Library Implementation

Also by the Author

Also by the Author

  • Loving Common Lisp, or the Savvy Programmer's Secret Weapon

    Loving Common Lisp, or the Savvy Programmer's Secret Weapon

    Mark Watson
  • LangChain and LlamaIndex Projects Lab Book: Hooking Large Language Models Up to the Real World

    LangChain and LlamaIndex Projects Lab Book: Hooking Large Language Models Up to the Real World

    Mark Watson
  • Haskell Tutorial and Cookbook

    Haskell Tutorial and Cookbook

    Mark Watson
  • A Lisp Programmer Living in Python-Land: The Hy Programming Language

    A Lisp Programmer Living in Python-Land: The Hy Programming Language

    Mark Watson
  • Practical Artificial Intelligence Programming With Clojure

    Practical Artificial Intelligence Programming With Clojure

    Mark Watson
  • Ollama in Action: Building Safe, Private AI with LLMs, Function Calling and Agents

    Ollama in Action: Building Safe, Private AI with LLMs, Function Calling and Agents

    Mark Watson
  • Build Intelligent Systems with JavaScript

    Build Intelligent Systems with JavaScript

    Mark Watson
  • Practical Artificial Intelligence Development With Racket

    Practical Artificial Intelligence Development With Racket

    Mark Watson
  • Artificial Intelligence Using Swift

    Artificial Intelligence Using Swift

    Mark Watson
  • Practical Python Artificial Intelligence Programming

    Practical Python Artificial Intelligence Programming

    Mark Watson
  • Artificial Intelligence Programming in Python: Exploring the Boundaries of Deep Learning, Symbolic AI, and Knowledge Representation

    Artificial Intelligence Programming in Python: Exploring the Boundaries of Deep Learning, Symbolic AI, and Knowledge Representation

    Mark Watson
  • Safe For Humans AI

    Safe For Humans AI

    Mark Watson
  • LM Studio in Action: Building Safe, Private AI with LLMs, Function Calling and Agents with MCP

    LM Studio in Action: Building Safe, Private AI with LLMs, Function Calling and Agents with MCP

    Mark Watson
  • Gerbil Scheme in Action

    Gerbil Scheme in Action

    Mark Watson
  • Practical AI Programming with Prolog

    Practical AI Programming with Prolog

    Mark Watson
  • Little Bits of Common Lisp

    Little Bits of Common Lisp

    Mark Watson
  • Practical AI with Google: A Solo Knowledge Worker's Guide to Gemini, AI Studio, and LLM APIs

    Practical AI with Google: A Solo Knowledge Worker's Guide to Gemini, AI Studio, and LLM APIs

    Mark Watson
  • Winning Big With Small AI

    Winning Big With Small AI

    Mark Watson

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.