简体   繁体   English

C#语音识别存储单词

[英]C# Speech Recognition Store Words

I am currently using 我目前正在使用

if (e.Result.Text == prefix + "who is bill gates") { System.Diagnostics.Process.Start(@"https://en.wikipedia.org/wiki/Bill_Gates"); }

I need to figure out how I can just make it 我需要弄清楚如何才能做到

if (e.Result.Text == prefix + "who is" + GET WhoIs) { System.Diagnostics.Process.Start(@"https://en.wikipedia.org/wiki/" + WhoIs); }

I need it to work dynamically if possible. 如果可能,我需要它动态地工作。 I have no idea how I can do this any help would be much appreciated. 我不知道我该怎么做,将不胜感激。

What big is your project? 您的项目有多大?

If you know that the words in the start of the sentence will be the same, just take them from your string and then use the rest as the text. 如果您知道句子开头的单词是相同的,只需从字符串中取出它们,然后将其余的用作文本。

If you want to work with something more dynamic and your time and budget is limited, checkout Microsoft Bot Framework 如果您想使用更动态的东西并且您的时间和预算有限,请签出Microsoft Bot Framework

Else, you need to read about NLP. 否则,您需要阅读有关NLP的内容。 How to tag words, determine Noun, verb, etc 如何标记单词,确定名词,动词等

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM