Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设用户可以输入三个不同元素之一:{A, B, C}
{A, B, C}
当用户继续输入这些值时,有没有办法预测下一个值是哪个值,接下来是哪个值,接下来是哪个三个值的概率?
如果是这样,请您参考我可以阅读的算法吗?或者一些代码示例?
阅读n-grams。给定最近输入的字符,您可以使用它们来确定下一个字符的概率。