A webapi that using machine learning to determine which NPC from the Baldur's Gate series of games would be most likely to say a given sentence.
Make a GET request to the api endpoint specifying the text parameter on the query string and model on the query string, e.g.
There are 3 values available for the modeltype: 0 uses a model trained on both BG1 and BG2 data 1 uses a model trained solely on BG1 data 2 uses a model trained solely on BG2 data
The api will return an array of key value pairs, containing the top 5 NPC names and the confidence the ML model gives of that NPC of speaking that text.
No explicit releases are available, though you can clone this repository and build the project.
npctextprediction is written in C# Net Core 3 and is hosted as Azure functions.
To clone and run this application, you'll need Git and .NET installed on your computer. From your command line:
# Clone this repository
$ git clone https://github.com/btigi/npctextprediction
# Go into the repository
$ cd npctextprediction
# Build the app
$ dotnet build
npctextprediction is licensed under CC BY-NC 4.0