Practical Artificial Intelligence Programming With Java

Practical Artificial Intelligence Programming With Java

Mark Watson
Buy on Leanpub

Table of Contents

Practical Artificial Intelligence Programming With Java

  • 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
Practical Artificial Intelligence Programming With Java/