A"的正则表达式单词QUOT; (语义替换) - 例如任何语法和图书馆? [英] A "regex for words" (semantic replacement) - any example syntax and libraries?

查看:187
本文介绍了A"的正则表达式单词QUOT; (语义替换) - 例如任何语法和图书馆?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找syntatic例子或对词,而不是人物做正则表达式的风格转换常见的技术,给出一种程序语言。



例如,要跟踪复制,一会要创建具有相似的含义,但不同的单词选择一个文件。



我希望能够简明地定义,我可以适用于文本流这些可能的变革。



例如。 快的名词的为快速的名词的,而是走的快。会不会被事后转化(无名词

或:爱丽丝会唱的歌曲的到的歌曲的将被爱丽丝唱



我希望这在语法检查器,如检测被动语态来完成。



C#实现对于这种语言的处理将是很整齐,但我认为,任何工作的大部分是想出正确的规则 - 保持规则清晰易懂好像开始的地方。


< DIV CLASS =h2_lin>解决方案

您可以尝试的贾森·雷尼>共发现-QueryData-1.47>共发现:: QueryData


I'm looking for syntatic examples or common techniques for doing regular expression style transformations on words instead of characters, given a procedural language.

For example, to trace copying, one would want to create a document with similar meaning but with different word choices.

I'd like to be able to concisely define these possible transformations that I can apply to a text stream.

Eg. "fast noun" to "rapid noun", but "go fast." wouldn't get transformed (no noun afterwards.
Or: "Alice will sing song" to "song will be sung by Alice"

I'd expect this to be done in grammatical checkers, such as detecting passive voice.

A C# implementation for this sort of language-processing would be really neat, but I think the bulk of any effort is coming up with the right rules - Keeping the rules clear and understandable seems like a place to begin.

解决方案

You could try Jason Rennie > WordNet-QueryData-1.47 > WordNet::QueryData

这篇关于A&QUOT;的正则表达式单词QUOT; (语义替换) - 例如任何语法和图书馆?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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