Skip to content

DogFingerStudios/saintaveline-intent-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Saint Aveline Intent Model

This repository contains the code for training and evaluating an intent classification model for the Saint Aveline project. This model is designed to take user commands and classify them into predefined intents to facilitate appropriate responses.

The model is trained in Python, but is consumed by C# and Unity.

Requirements

  • Python 3.11.x is being used for development

Setup

1. Create and activate a virtual environment:

$> python -m venv venv
$> source venv/bin/activate  # On Windows use `venv\Scripts\activate`

This may be needed on some systems:

pip install --index-url https://download.pytorch.org/whl/cpu torch

2. Install the required packages:

$> pip install -r requirements.txt

Train the Model

$> python train.py

Evaluate the Model

$> python test.py

Build for C#

$> python python train.py   # outputs intent_model.pt
$> python export_model.py   # converts intent_model.pt to intent_model.onnx
$> python export_vcab_json.py   # exports the vocabulary to a JSON file

About

Local ONNX-based AI parser that splits natural language player input into command segments and structured intents for safe, deterministic NPC control in a survival-horror game.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors