Skip to content

Implementation of trainable ngram speech prediction as described in OSU Linguistics 3802

Notifications You must be signed in to change notification settings

KamiAithein/SpeechPrediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpeechPrediction

Predict speech when given text based on ngram method

Example speech found in examples directory

"Learns" by collecting n length phrases and the frequency of those phrases in relation to other phrases based on the next word. i.e. if length of 3:

"I want to" is the phrase recorded, and then the next word has a frequency

"I want to" + "Play" has a higher frequency than "I want to" + "bingbingbong" in most scenarios, therefore it will be chosen more often.

1/12/2020

Using BasicSpeechPredictor and HashMapNGRepo

Works by running SpeechPrediction.java

input needs to be the same length as the parameters for constructing HashMapNGRepo

output will be the input of the speech predictor

This algorithm works best when emulating someone with a short attention span.

About

Implementation of trainable ngram speech prediction as described in OSU Linguistics 3802

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published