如何使用C#给句子打分 [英] How to give marks for a sentence using c#

查看:69
本文介绍了如何使用C#给句子打分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,

在我的项目中,我想在检查拼写错误和语法错误后给句子加分.此桌面应用程序必须在此用户中键入anwser,当单击确定"按钮时,我想将用户的anwser与原始anwser进行比较,并自动为该答案分配标记.因此,请给我d指南以实现此目标.

谢谢
Sujith T.P

Hai,

In my project i want to give marks for a sentence after checking spelling mistakes and grammer mistakes. This desktop application, in this user has to type anwser, when click ok button i want to comapre user''s anwser with orginal anwser and automatically assign marks for that answer. So please give me d guidelines to achieve this.

Thanks
Sujith T.P

推荐答案

没有问题的形式化,没什么可谈的.

有人告诉我您没有这样的形式化.让我们看一下:而不是我想将用户的答案与原始答案进行比较",您将"i希望将用户的ws er和_ gin一起"一个ws er".如果八个单词拼写错误,则五个单词(62.5%;对我来说,对于要自动测试识字水平的一个单词来说,这个数字有点太多了:-)).

是否要减少大写字母的数量和倒排字母的数量?错误的字母呢(比起机械倒置的字母,也许在快速打字时,它显示出更多的文盲)?那总乱码呢?如果拼写错误并且作品数量不同,您将如何识别这些单词?可能有与原始拼写"不同的正确变体.什么,即使答案实际上是正确的,您还要减去点吗?我什至不提语法.

我觉得您一生都无法回答所有问题.如果您认为我错了,请提供一个完全正规的测试系统.编程根本不是问题. :-)

-SA
Without formalization of the problem, there is nothing to talk about.

Something tells me you don''t have such formalization. Let''s see: instead of "I want to compare user''s answer with original answer" you put "i want to comapre user''s anwser with or_ginal anwser". Five words out if eight are misspelled (62.5%; to me, a little too many for the one going to automate testing of a level of literacy :-)).

Do you want to reduce as many points for capitalization as for inverted letters? How about wrong letters (it indicates more of illiteracy then mechanically inverted letters, perhaps during fast typing)? What about total gibberish? How are you going to identify the words if they are misspelled and the number of works is different? There can be a correct variant different from the "original spelling". What, are you going to subtract points even if the answer is actually correct? I don''t even mention syntax.

I feel you whole life won''t be enough to answer all the questions. If you think I''m wrong, please provide a fully formalize system of testing. Programming won''t be a problem at all. :-)

—SA


SQL Server 2008 R2具有全文目录搜索功能.它可以帮助您为问题和答案匹配最佳模式.
SQL Server 2008 R2 has full text catalog search feature. It helps you to match the best pattern for the question and answer.


这篇关于如何使用C#给句子打分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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