Revision: 7162
http://languagetool.svn.sourceforge.net/languagetool/?rev=7162&view=rev
Author: milek_pl
Date: 2012-06-02 10:49:21 +0000 (Sat, 02 Jun 2012)
Log Message:
-----------
add one more disambig rule
Modified Paths:
--------------
trunk/JLanguageTool/src/resource/en/disambiguation.xml
Modified: trunk/JLanguageTool/src/resource/en/disambiguation.xml
===================================================================
--- trunk/JLanguageTool/src/resource/en/disambiguation.xml 2012-06-02
10:10:49 UTC (rev 7161)
+++ trunk/JLanguageTool/src/resource/en/disambiguation.xml 2012-06-02
10:49:21 UTC (rev 7162)
@@ -990,15 +990,29 @@
</pattern>
<disambig postag="NN:UN"></disambig>
</rule>
- <rule name="Figure|Table|Appendix 1 -> NNP" id="figure_1_NNP">
+ <rulegroup name="Figure|Table|Appendix 1 -> NNP" id="figure_1_NNP">
+ <rule>
<pattern>
<marker>
- <token
regexp="yes">figure|table|appendix|chapter|part|fig|section|picture|lemma|column|row|fraction</token>
- </marker>
+ <token
regexp="yes">figure|table|appendix|chapter|part|section|picture|lemma|column|row|fraction</token>
+ </marker>
<token regexp="yes">\d+([\.\-]\d+)*|[A-Z]</token>
</pattern>
<disambig postag="NNP"></disambig>
</rule>
+ <rule>
+ <pattern>
+ <marker>
+ <token regexp="yes">fig|chap</token>
+ </marker>
+ <token>.</token>
+ <token regexp="yes">[\d+\p{Lu}]</token>
+ </pattern>
+ <disambig postag="NNP"/>
+ <example type="untouched">This is Figure 1.</example>
+ <example type="ambiguous" inputform="Fig[fig/NN]"
outputform="Fig[fig/NNP]">This is <marker>Fig</marker>. 1.</example>
+ </rule>
+ </rulegroup>
<rule name="worth + VBG/NN -> VBG" id="WORTH_VBG_NN">
<pattern>
<token>worth</token>
@@ -1436,6 +1450,5 @@
</pattern>
<disambig postag="VB"/>
<example type="ambiguous"
inputform="train[train/NN,train/VB,train/VBP]" outputform="train[train/VB]">Our
army helped <marker>train</marker> the Armenian soldiers.</example>
- </rule>
-
+ </rule>
</rules>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs