我可以编写一个程序来检查输入字符串在C#中是否有意义吗? [英] Can i write a program to check if the input string makes any sense in C#?

查看:76
本文介绍了我可以编写一个程序来检查输入字符串在C#中是否有意义吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,



我在徘徊,我可以编写一个程序来检查输入字(字符串)是否有意义(有效的英文单词)英语词典?



如何比较输入字符串?



请提供输入。



谢谢,

Hello Everyone,

I was wandering that can i write a program to check if the input word (string) makes any sense(valid english word) according to the English Dictionary?

How will i do a comparison of that input string?

Please provide inputs.

Thanks,

推荐答案

没有上下文,单个单词不会产生任何意义。字典只能帮助您确定单词是否拼写正确,但对于某些有意义的内容,您必须在上下文中传达完整的想法。



这是一个非常萌芽的人工智能领域,计算机系统确定一组单词是否形成一个句子(简单)并传达一个完整的想法(现在不可能)的能力。



计算机无法确定某些事物是否有意义的原因是计算机无法猜测背景或合理性。这对今天的技术来说是不可能的。



例如,单词orange本身没有任何意义。你在谈论颜色还是水果?把它放在像我的橙色味道像牛肉这样的句子中,正确拼写单词,传达完整的想法,但没有任何意义。我们知道这一点,因为我们知道什么是橙子的味道,我们知道牛肉的味道,但是橙子不会像牛肉一样品尝。
Single words do not make any "sense" without context. A dictionary can only help you determine if the word is spelled correctly, but for something to make sense you have to convey a complete idea in a context.

This is a very budding area of artificial intelligence, the ability for a computer system to determine if a set of words both forms a sentence (easy) and conveys a complete idea (right now impossible).

The reason a computer can't determine if something makes sense or not is because a computer can't guess context or rationality. This is just not possible with today's technology.

For example, the word "orange" doesn't make any sense by itself. Are you talking about the color, or the fruit? Put it in a sentence like "My orange tastes like beef", has correctly spelled words, conveys a complete idea, but doesn't make any sense. We know this because we know what oranges taste like, and we know what beef tastes like, but oranges do not taste anything like beef.


这篇关于我可以编写一个程序来检查输入字符串在C#中是否有意义吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆