Minimum price
Free!
$15.00
EPUB
WEB
APP
1,198
Readers
About
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.
Author
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
Contents
Preface
- Requests from the Author
- Personal Artificial Intelligence Journey
- Maven Setup for Combining Examples in this Book
- Acknowledgements
Search
- Representation of Search State Space and Search Operators
- Finding Paths in Mazes
- Finding Paths in Graphs
- Adding Heuristics to Breadth-first Search
- Heuristic Search and Game Playing: Tic-Tac-Toe and Chess
- Optional Practice Problems
Using the OpenAI Large Language Model APIs in Java
- Java Library to Use OpenAI’s APIs
- Example Applications
- Extraction of Facts and Relationships from Text Data
- Using LLMs to Summarize Text
- Optional Practice Problems
Using the Google Gemini Large Language Model APIs in Java
- Java Library to Use Google Gemini’s APIs
- Example Applications
- Wrap Up
- Optional Practice Problems
Using Local LLMs with Ollama in Java Applications
- Advantages of Using Local LLMs with Ollama
- Applications of Local LLMs with Ollama
- Java Library to Use Ollama’s REST API
- Example Using the Library
- Extraction of Facts and Relationships from Text Data
- Using LLMs to Summarize Text
- Optional Practice Problems
LangChain for Java as an Abstraction for Different Large Language Models
- Why Use an Abstraction Layer?
- Maven Project Setup
- Implementation: The OllamaLlmLangChain4j Class
- Prompt Templates: Two-Shot Entity Extraction
- Test Examples
- Running the Examples
- Wrap Up
- Optional Practice Problems
AgentScope Agent Oriented Framework.
- Using the Java Implementation of AgentScope: Hello World
- Using the Java Implementation of AgentScope: Tool Use
- Wrap Up: From Simple Chat to Autonomous Tool Use
- Optional Practice Problems
Anomaly Detection Machine Learning Example
- Motivation for Anomaly Detection
- Math Primer for Anomaly Detection
- AnomalyDetection Utility Class
- Example Using the University of Wisconsin Cancer Data
- Optional Practice Problems
Genetic Algorithms
- Theory
- Java Library for Genetic Algorithms
- Finding the Maximum Value of a Function
- Optional Practice Problems
Neural Networks
- Road Map for the Neural Network Example Code
- Backpropagation Neural Networks
- A Java Class Library for Back Propagation
- Adding Momentum to Speed Up Back-Prop Training
- Wrap-up for Neural Networks
- Optional Practice Problems
Natural Language Processing
- Overview of the NLP Library and Running the Examples
- Tokenizing, Stemming, and Part of Speech Tagging Text
- Named Entity Extraction From Text
- Automatically Assigning Categories to Text
- Text Clustering
- Wrapup
- Optional Practice Problems
Information Gathering
- Web Scraping Examples
- Web Spidering Using the Jericho Library
- Client for GeoNames Service
- Wrap-up for Information Gathering
- Optional Practice Problems
Resolve Entity Names to DBPedia References
- DBPedia Entities
- Library Implementation
Also by the Author
Loving Common Lisp, or the Savvy Programmer's Secret Weapon
LangChain and LlamaIndex Projects Lab Book: Hooking Large Language Models Up to the Real World
Haskell Tutorial and Cookbook
A Lisp Programmer Living in Python-Land: The Hy Programming Language
Practical Artificial Intelligence Programming With Clojure
Ollama in Action: Building Safe, Private AI with LLMs, Function Calling and Agents
Build Intelligent Systems with JavaScript
Practical Artificial Intelligence Development With Racket
Artificial Intelligence Using Swift
Practical Python Artificial Intelligence Programming
Artificial Intelligence Programming in Python: Exploring the Boundaries of Deep Learning, Symbolic AI, and Knowledge Representation
Safe For Humans AI
LM Studio in Action: Building Safe, Private AI with LLMs, Function Calling and Agents with MCP
Gerbil Scheme in Action
Practical AI with Google: A Solo Knowledge Worker's Guide to Gemini, AI Studio, and LLM APIs
Winning Big With Small AI
Practical AI Programming with Prolog
The Rise of Local Coding Agents
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.
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.)
In fact, authors have earned over $15 million writing, publishing and selling 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.