如何从名词列表中识别好类名称 [英] How do I identify the good classes names from a list of nouns

查看:119
本文介绍了如何从名词列表中识别好类名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个程序,应该在需求规范的文本中找到类的名称(用自然语言编写),我发现名词表示类名,但肯定并非所有名词都是好类,所以我想要过滤掉它们,我想知道如何???



我知道这个过程在人类做的时候会更有效,但我想制作程序结果与人类工作一样好。



非常感谢

I'm working on a program that should find the names of classes in a text of requirement specifications(written in natural language), I found that nouns indicate the class name, but surely not all nouns are good classes, so I want to filter them out, and I want to know how???

I know this process is more effective when human do it, but I want to make the program results as good as human work.

thanks a lot

推荐答案

即使是超级复杂的自然语言分析器不会这样做...类名依赖于开发人员编写代码的个别编码风格,而那些类名可以是从单个名词到几个名词堆叠在一起的形式,缩短形式和拼接单词等等...

因此,即使是不熟悉编程语言和手头文档主题的人类读者,也可能会跳过某些类名而无需进一步的信息,更不用说计算机程序......
Even a super-sophisticated natural language analyzer will not do it...A class name is depend on the individual coding style of the developer wrote the code, and those class names can be anything from single noun to several nouns stacked together, shortened forms and mosaic words and on and on...
So even a human reader unfamiliar with programming languages and with the subject of the document at hand, will probably skip some class names without further information, not to say a computer program...


这篇关于如何从名词列表中识别好类名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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