You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by pk...@apache.org on 2013/06/10 11:29:41 UTC

svn commit: r1491386 - in /uima/sandbox/ruta/trunk/example-projects/TextRulerExample: data/singleError/ data/singleError/0.txt.xmi.xmi script/uima/ruta/example/KEP.ruta script/uima/ruta/example/TraBaL.ruta

Author: pkluegl
Date: Mon Jun 10 09:29:41 2013
New Revision: 1491386

URL: http://svn.apache.org/r1491386
Log:
UIMA-2704
- added results for kep and trabal
- added document with errors

Added:
    uima/sandbox/ruta/trunk/example-projects/TextRulerExample/data/singleError/
    uima/sandbox/ruta/trunk/example-projects/TextRulerExample/data/singleError/0.txt.xmi.xmi
    uima/sandbox/ruta/trunk/example-projects/TextRulerExample/script/uima/ruta/example/KEP.ruta
    uima/sandbox/ruta/trunk/example-projects/TextRulerExample/script/uima/ruta/example/TraBaL.ruta

Added: uima/sandbox/ruta/trunk/example-projects/TextRulerExample/data/singleError/0.txt.xmi.xmi
URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/example-projects/TextRulerExample/data/singleError/0.txt.xmi.xmi?rev=1491386&view=auto
==============================================================================
--- uima/sandbox/ruta/trunk/example-projects/TextRulerExample/data/singleError/0.txt.xmi.xmi (added)
+++ uima/sandbox/ruta/trunk/example-projects/TextRulerExample/data/singleError/0.txt.xmi.xmi Mon Jun 10 09:29:41 2013
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmlns:cas="http:///uima/cas.ecore" xmlns:type="http:///org/apache/uima/ruta/type.ecore" xmlns:xmi="http://www.omg.org/XMI" xmlns:tcas="http:///uima/tcas.ecore" xmlns:example="http:///uima/ruta/example.ecore" xmi:version="2.0">
+    <cas:NULL xmi:id="0"/>
+    <cas:Sofa xmi:id="1" sofaNum="1" sofaID="_InitialView" mimeType="text" sofaString="CORA:&#10; Harper, M. P., &amp; Helzerman, R. A.   (1995b).   Managing multiple knowledge sources in constraint-based parsing of spoken language.   Fundamenta Informaticae,   23 (2, 3, 4),   303-353. &#10; Puterman, M. L.   (1994).   Markov Decision Problems.   Wiley,   New York. &#10; Blumer, A., Ehrenfeucht, A., Haussler, D., &amp; Warmuth, M.   (1989).   Learnability and the Vapnik-Chervonenkis dimension.   Journal of the ACM,   36 (4),   929-965. &#10; Forbus, K. D.   (1989).   Introducing Actions in Qualitative Simulation.   Proceedings of IJCAI-89,   1273-1278. &#10; LeBlanc, M., &amp; Tibshirani, R.   (1993).   Combining estimates in regression and classification.   Tech. rep.,   Department of Statistics, U. of Toronto. &#10; Golomb, S., &amp; Baumert, L.   (1965).   Backtrack programming.   J. ACM,   12,   516-524. &#10; Guziec, A., &amp; Ayache, N.   (1992).   Smoothing and matchi
 ng of 3-d space curves.   Visualization in Biomedical Computing, Proc. SPIE,   1808,   259-273. &#10; Hawley, D. K., &amp; McClure, W. R.   (1983).   Compilation and analysis of escherichia coli promoter DNA sequences.   Nucleic Acids Research,   11 (8),   2237-2255. &#10; McKinsey, J. C. C.   (1943).   The decision problem for some classes of sentences without quantifier.   Journal of Symbolic Logic,   8 (3),   61-76. &#10; Dietterich, T. G., &amp; Bakiri, G.   (1995).   Solving multiclass learning problems via error-correcting output codes.   Journal of Artificial Intelligence Research,   2,   263-286. &#10; Soskin, William F.   (1963).   Verbal Interactions in a Young Married Couple.   University of Kansas Publications,   Lawrence, Kansas. &#10; Dechter, R.   (1992).   From local to global consistency.   Artificial Intelligence,   55,   87-107. &#10; Fikes, R. E., Hart, P. E., &amp; Nilsson, N. J.   (1972).   Learning and executing generalized robot plans.   Artificial In
 telligence,   3,   251-288. &#10; Rosenbloom, P. S., Laird, J. E., &amp; Newell, A.   (1988).   The chunking of skill and knowledge. &#10; Spirtes, P., Glymour, C., &amp; Scheines, R.   (1993).   Causation, Prediction, and Search.   Springer-Verlag,   New York. &#10; Bunke, H., &amp; Allermann, G.   (1983).   Inexact graph matching for structural pattern recognition.   Pattern Recognition Letters,   1 (4),   245-253. &#10; Rubinstein, A.   (1982).   Perfect equilibrium in a bargaining model.   Econometrica,   50 (1),   97-109. &#10; Buntine, W.   (1994).   Operations for learning with graphical models.   Journal of Artificial Intelligence Research,   2,   159-225. &#10; Friedman, J. H., &amp; Stuetzle, W.   (1981).   Projection pursuit regression.   Journal of the American Statistics Association,   76,   817-823. &#10; Whitley, D., &amp; Gruau, F.   (1993).   Adding learning to the cellular development of neural networks: Evolution and the Baldwin effect.   Evolutionary Comp
 utation,   1,   213-233. &#10;"/>
+    <tcas:DocumentAnnotation xmi:id="8" sofa="1" begin="0" end="2774" language="x-unspecified"/>
+    <example:Author xmi:id="13" sofa="1" begin="7" end="21"/>
+    <example:Author xmi:id="17" sofa="1" begin="194" end="209"/>
+    <example:Author xmi:id="21" sofa="1" begin="271" end="313"/>
+    <example:Author xmi:id="25" sofa="1" begin="437" end="450"/>
+    <example:Author xmi:id="29" sofa="1" begin="552" end="564"/>
+    <example:Author xmi:id="33" sofa="1" begin="707" end="718"/>
+    <example:Author xmi:id="37" sofa="1" begin="797" end="808"/>
+    <example:Author xmi:id="41" sofa="1" begin="952" end="966"/>
+    <example:Author xmi:id="45" sofa="1" begin="1116" end="1134"/>
+    <example:Author xmi:id="49" sofa="1" begin="1267" end="1285"/>
+    <example:Author xmi:id="53" sofa="1" begin="1448" end="1466"/>
+    <example:Author xmi:id="57" sofa="1" begin="1585" end="1596"/>
+    <example:Author xmi:id="61" sofa="1" begin="1688" end="1714"/>
+    <example:Author xmi:id="65" sofa="1" begin="1837" end="1869"/>
+    <example:Author xmi:id="69" sofa="1" begin="1934" end="1959"/>
+    <example:Author xmi:id="73" sofa="1" begin="2055" end="2065"/>
+    <example:Author xmi:id="77" sofa="1" begin="2206" end="2220"/>
+    <example:Author xmi:id="81" sofa="1" begin="2314" end="2325"/>
+    <example:Author xmi:id="85" sofa="1" begin="2450" end="2466"/>
+    <example:Author xmi:id="89" sofa="1" begin="2594" end="2606"/>
+    <example:Date xmi:id="97" sofa="1" begin="212" end="218"/>
+    <example:Date xmi:id="101" sofa="1" begin="330" end="336"/>
+    <example:Date xmi:id="105" sofa="1" begin="453" end="459"/>
+    <example:Date xmi:id="109" sofa="1" begin="584" end="590"/>
+    <example:Date xmi:id="117" sofa="1" begin="824" end="830"/>
+    <example:Date xmi:id="121" sofa="1" begin="986" end="992"/>
+    <example:Date xmi:id="129" sofa="1" begin="1301" end="1307"/>
+    <example:Date xmi:id="133" sofa="1" begin="1469" end="1475"/>
+    <example:Date xmi:id="137" sofa="1" begin="1599" end="1605"/>
+    <example:Date xmi:id="141" sofa="1" begin="1734" end="1740"/>
+    <example:Date xmi:id="145" sofa="1" begin="1885" end="1891"/>
+    <example:Date xmi:id="149" sofa="1" begin="1977" end="1983"/>
+    <example:Date xmi:id="153" sofa="1" begin="2084" end="2090"/>
+    <example:Date xmi:id="157" sofa="1" begin="2223" end="2229"/>
+    <example:Date xmi:id="161" sofa="1" begin="2328" end="2334"/>
+    <example:Date xmi:id="165" sofa="1" begin="2484" end="2490"/>
+    <example:Date xmi:id="169" sofa="1" begin="2621" end="2627"/>
+    <example:Pages xmi:id="173" sofa="1" begin="183" end="191"/>
+    <example:Pages xmi:id="177" sofa="1" begin="426" end="434"/>
+    <example:Pages xmi:id="181" sofa="1" begin="539" end="549"/>
+    <example:Pages xmi:id="185" sofa="1" begin="786" end="794"/>
+    <example:Pages xmi:id="189" sofa="1" begin="941" end="949"/>
+    <example:Pages xmi:id="193" sofa="1" begin="1103" end="1113"/>
+    <example:Pages xmi:id="197" sofa="1" begin="1258" end="1264"/>
+    <example:Pages xmi:id="201" sofa="1" begin="1437" end="1445"/>
+    <example:Pages xmi:id="205" sofa="1" begin="1678" end="1685"/>
+    <example:Pages xmi:id="209" sofa="1" begin="1826" end="1834"/>
+    <example:Pages xmi:id="213" sofa="1" begin="2195" end="2203"/>
+    <example:Pages xmi:id="217" sofa="1" begin="2304" end="2311"/>
+    <example:Pages xmi:id="221" sofa="1" begin="2439" end="2447"/>
+    <example:Pages xmi:id="225" sofa="1" begin="2583" end="2591"/>
+    <example:Pages xmi:id="229" sofa="1" begin="2764" end="2772"/>
+    <example:Publisher xmi:id="233" sofa="1" begin="250" end="256"/>
+    <example:Publisher xmi:id="237" sofa="1" begin="1528" end="1562"/>
+    <example:Publisher xmi:id="241" sofa="1" begin="2024" end="2040"/>
+    <example:Institution xmi:id="245" sofa="1" begin="664" end="704"/>
+    <example:Volume xmi:id="249" sofa="1" begin="167" end="180"/>
+    <example:Volume xmi:id="253" sofa="1" begin="416" end="423"/>
+    <example:Volume xmi:id="257" sofa="1" begin="780" end="783"/>
+    <example:Volume xmi:id="261" sofa="1" begin="933" end="938"/>
+    <example:Volume xmi:id="265" sofa="1" begin="1093" end="1100"/>
+    <example:Volume xmi:id="269" sofa="1" begin="1249" end="1255"/>
+    <example:Volume xmi:id="273" sofa="1" begin="1432" end="1434"/>
+    <example:Volume xmi:id="277" sofa="1" begin="1672" end="1675"/>
+    <example:Volume xmi:id="281" sofa="1" begin="1821" end="1823"/>
+    <example:Volume xmi:id="285" sofa="1" begin="2186" end="2192"/>
+    <example:Volume xmi:id="289" sofa="1" begin="2294" end="2301"/>
+    <example:Volume xmi:id="293" sofa="1" begin="2434" end="2436"/>
+    <example:Volume xmi:id="297" sofa="1" begin="2577" end="2580"/>
+    <example:Volume xmi:id="301" sofa="1" begin="2759" end="2761"/>
+    <example:Title xmi:id="305" sofa="1" begin="43" end="137"/>
+    <example:Title xmi:id="309" sofa="1" begin="222" end="247"/>
+    <example:Title xmi:id="313" sofa="1" begin="340" end="391"/>
+    <example:Title xmi:id="317" sofa="1" begin="463" end="509"/>
+    <example:Title xmi:id="321" sofa="1" begin="594" end="647"/>
+    <example:Title xmi:id="325" sofa="1" begin="735" end="767"/>
+    <example:Title xmi:id="329" sofa="1" begin="834" end="877"/>
+    <example:Title xmi:id="333" sofa="1" begin="996" end="1064"/>
+    <example:Title xmi:id="337" sofa="1" begin="1137" end="1217"/>
+    <example:Title xmi:id="341" sofa="1" begin="1311" end="1382"/>
+    <example:Title xmi:id="345" sofa="1" begin="1479" end="1525"/>
+    <example:Title xmi:id="349" sofa="1" begin="1609" end="1642"/>
+    <example:Title xmi:id="353" sofa="1" begin="1744" end="1791"/>
+    <example:Title xmi:id="357" sofa="1" begin="1895" end="1931"/>
+    <example:Title xmi:id="361" sofa="1" begin="1987" end="2021"/>
+    <example:Title xmi:id="365" sofa="1" begin="2094" end="2152"/>
+    <example:Title xmi:id="369" sofa="1" begin="2233" end="2275"/>
+    <example:Title xmi:id="373" sofa="1" begin="2338" end="2384"/>
+    <example:Title xmi:id="377" sofa="1" begin="2494" end="2524"/>
+    <example:Title xmi:id="381" sofa="1" begin="2631" end="2728"/>
+    <example:Booktitle xmi:id="385" sofa="1" begin="512" end="536"/>
+    <example:Journal xmi:id="389" sofa="1" begin="140" end="164"/>
+    <example:Journal xmi:id="393" sofa="1" begin="394" end="413"/>
+    <example:Journal xmi:id="397" sofa="1" begin="770" end="777"/>
+    <example:Journal xmi:id="401" sofa="1" begin="880" end="930"/>
+    <example:Journal xmi:id="405" sofa="1" begin="1067" end="1090"/>
+    <example:Journal xmi:id="409" sofa="1" begin="1220" end="1246"/>
+    <example:Journal xmi:id="413" sofa="1" begin="1385" end="1429"/>
+    <example:Journal xmi:id="417" sofa="1" begin="1645" end="1669"/>
+    <example:Journal xmi:id="421" sofa="1" begin="1794" end="1818"/>
+    <example:Journal xmi:id="425" sofa="1" begin="2155" end="2183"/>
+    <example:Journal xmi:id="429" sofa="1" begin="2278" end="2291"/>
+    <example:Journal xmi:id="433" sofa="1" begin="2387" end="2431"/>
+    <example:Journal xmi:id="437" sofa="1" begin="2527" end="2574"/>
+    <example:Journal xmi:id="441" sofa="1" begin="2731" end="2756"/>
+    <example:Location xmi:id="445" sofa="1" begin="259" end="268"/>
+    <example:Location xmi:id="449" sofa="1" begin="1565" end="1582"/>
+    <example:Location xmi:id="453" sofa="1" begin="2043" end="2052"/>
+    <example:Tech xmi:id="457" sofa="1" begin="650" end="661"/>
+    <cas:View sofa="1" members="8 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 97 101 105 109 117 121 129 133 137 141 145 149 153 157 161 165 169 173 177 181 185 189 193 197 201 205 209 213 217 221 225 229 233 237 241 245 249 253 257 261 265 269 273 277 281 285 289 293 297 301 305 309 313 317 321 325 329 333 337 341 345 349 353 357 361 365 369 373 377 381 385 389 393 397 401 405 409 413 417 421 425 429 433 437 441 445 449 453 457"/>
+</xmi:XMI>

Added: uima/sandbox/ruta/trunk/example-projects/TextRulerExample/script/uima/ruta/example/KEP.ruta
URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/example-projects/TextRulerExample/script/uima/ruta/example/KEP.ruta?rev=1491386&view=auto
==============================================================================
--- uima/sandbox/ruta/trunk/example-projects/TextRulerExample/script/uima/ruta/example/KEP.ruta (added)
+++ uima/sandbox/ruta/trunk/example-projects/TextRulerExample/script/uima/ruta/example/KEP.ruta Mon Jun 10 09:29:41 2013
@@ -0,0 +1,179 @@
+PACKAGE uima.ruta.example;
+
+SCRIPT uima.ruta.example.Features;
+Document{-> CALL(Features)};
+DECLARE AuthorSTART, AuthorEND, DateSTART, DateEND, PagesSTART, PagesEND, PublisherSTART, PublisherEND, InstitutionSTART, InstitutionEND, VolumeSTART, VolumeEND, EditorSTART, EditorEND, TitleSTART, TitleEND, BooktitleSTART, BooktitleEND, NoteSTART, NoteEND, JournalSTART, JournalEND, LocationSTART, LocationEND, TechSTART, TechEND;
+BLOCK(Reference) Reference{} { 
+// uima.ruta.example.Author RULES 
+    FirstToken{->MARKONCE(Author, 1, 7)} COMMA FirstNameInitial[1,2]? NameLinker[1,2]? CW CommaSep FirstNameInitial[1,2]? LParen;   // p=7; n=0
+    FirstToken{->MARKONCE(Author, 1, 4)} CommaSep CW[1,2]? PERIOD LParen;   // p=4; n=0
+    FirstToken{->MARKONCE(Author, 1, 5)} CommaSep FirstNameInitial[1,2]? CW PERIOD SPECIAL; // p=2; n=0
+    FirstToken{->MARKONCE(Author, 1, 15)} CommaSep FirstNameInitial COMMA CW NameLinker FirstNameInitial COMMA CW CommaSep FirstNameInitial NameLinker[1,2]? CW COMMA FirstNameInitial; // p=1; n=0
+
+// uima.ruta.example.AuthorSTART RULES 
+    FirstToken{->MARKONCE(AuthorSTART)};    // p=20; n=0
+
+// uima.ruta.example.AuthorEND RULES 
+    PERIOD{->MARKONCE(AuthorEND)} LParen;   // p=20; n=0
+
+// uima.ruta.example.Date RULES 
+    SPECIAL{->MARKONCE(Date, 1, 4)} YearInd SPECIAL PERIOD; // p=20; n=0
+
+// uima.ruta.example.DateSTART RULES 
+    LParen{->MARKONCE(DateSTART)} YearInd;  // p=20; n=0
+
+// uima.ruta.example.DateEND RULES 
+    SPECIAL PeriodSep{->MARKONCE(DateEND)} CW;  // p=20; n=0
+}
+BLOCK(Paragraph) Paragraph{} { 
+// uima.ruta.example.Pages RULES 
+    NUM{->MARKONCE(Pages, 1, 4)} SPECIAL NUM PeriodSep; // p=15; n=0
+
+// uima.ruta.example.PagesSTART RULES 
+    COMMA NUM{->MARKONCE(PagesSTART)} SPECIAL NUM PERIOD;   // p=15; n=0
+
+// uima.ruta.example.PagesEND RULES 
+    NUM LastToken{->MARKONCE(PagesEND)};    // p=15; n=0
+
+// uima.ruta.example.Publisher RULES 
+    CW{->MARKONCE(Publisher, 1, 4)} SPECIAL CW NameLinker;  // p=1; n=0
+    CW{->MARKONCE(Publisher, 1, 4)} SW CW[1,2]? CommaSep FirstName; // p=1; n=0
+    PERIOD FirstName{->MARKONCE(Publisher, 2, 3)} COMMA;    // p=1; n=0
+
+// uima.ruta.example.PublisherSTART RULES 
+    CW PeriodSep CW{->MARKONCE(PublisherSTART)};    // p=3; n=5
+    PeriodSep CW{->MARKONCE(PublisherSTART)} SPECIAL;   // p=1; n=0
+    PERIOD CW[1,3]? PeriodSep CW{->MARKONCE(PublisherSTART)};   // p=1; n=0
+
+// uima.ruta.example.PublisherEND RULES 
+    PublisherInd CommaSep{->MARKONCE(PublisherEND)} CW; // p=1; n=0
+    CW CommaSep{->MARKONCE(PublisherEND)} FirstName NameLinker; // p=1; n=0
+    PeriodSep FirstName CommaSep{->MARKONCE(PublisherEND)} CW;  // p=1; n=0
+
+// uima.ruta.example.Institution RULES 
+    CW{->MARKONCE(Institution, 1, 8)} EnglishStopWord CW CommaSep FirstNameInitial EnglishStopWord CW PERIOD;   // p=1; n=0
+
+// uima.ruta.example.InstitutionSTART RULES 
+    CommaSep CW{->MARKONCE(InstitutionSTART)} EnglishStopWord;  // p=1; n=0
+
+// uima.ruta.example.InstitutionEND RULES 
+    EnglishStopWord CW LastToken{->MARKONCE(InstitutionEND)};   // p=1; n=0
+
+// uima.ruta.example.Volume RULES 
+    COMMA NUM{->MARKONCE(Volume, 2, 3)} NameLinker Pages;   // p=8; n=0
+    NUM{->MARKONCE(Volume, 1, 5)} SPECIAL NUM RParen NameLinker;    // p=5; n=0
+    NUM{->MARKONCE(Volume, 1, 9)} LParen NUM COMMA NUM NameLinker NUM RParen NameLinker;    // p=1; n=0
+
+// uima.ruta.example.VolumeSTART RULES 
+    COMMA NUM{->MARKONCE(VolumeSTART)} CommaSep Pages;  // p=8; n=0
+    NUM{->MARKONCE(VolumeSTART)} LParen;    // p=6; n=0
+
+// uima.ruta.example.VolumeEND RULES 
+    CommaSep{->MARKONCE(VolumeEND)} PagesSTART; // p=14; n=1
+    SPECIAL CommaSep{->MARKONCE(VolumeEND)} PagesSTART; // p=6; n=0
+}
+BLOCK(Reference) Reference{} { 
+// uima.ruta.example.Title RULES 
+    DateEND CW{->MARKONCE(Title, 2, 4)} SW[1,9]? PeriodSep; // p=10; n=0
+    CW{->MARKONCE(Title, 1, 5)} SW[1,5]? SPECIAL SW[1,5]? PeriodSep;    // p=2; n=0
+    CW[1,2]?{->MARKONCE(Title, 1, 4)} SW[1,2]? CW[1,3]? PeriodSep;  // p=2; n=0
+    CW{->MARKONCE(Title, 1, 8)} NameLinker EnglishStopWord CW SPECIAL CW SW PeriodSep;  // p=1; n=0
+    CW{->MARKONCE(Title, 1, 6)} SW[1,3]? NUM SPECIAL SW[1,3]? PeriodSep;    // p=1; n=0
+    CW{->MARKONCE(Title, 1, 6)} NameLinker SW[1,5]? CAP SW PeriodSep;   // p=1; n=0
+    CW{->MARKONCE(Title, 1, 7)} COMMA CW COMMA EnglishStopWord CW PERIOD;   // p=1; n=0
+    CW{->MARKONCE(Title, 1, 8)} SW[1,8]? COLON CW SW[1,2]? FirstName SW PeriodSep;  // p=1; n=0
+    CW[1,3]?{->MARKONCE(Title, 1, 2)} PeriodSep FirstName;  // p=1; n=0
+
+// uima.ruta.example.TitleSTART RULES 
+    Date CW{->MARKONCE(TitleSTART)};    // p=20; n=0
+
+// uima.ruta.example.TitleEND RULES 
+    PeriodSep{->MARKONCE(TitleEND)} CW; // p=20; n=38
+    SW PeriodSep{->MARKONCE(TitleEND)} CW;  // p=16; n=0
+    PeriodSep{->MARKONCE(TitleEND)} Publisher;  // p=3; n=0
+}
+BLOCK(Paragraph) Paragraph{} { 
+// uima.ruta.example.Booktitle RULES 
+    CW{->MARKONCE(Booktitle, 1, 6)} EnglishStopWord CAP SPECIAL NUM COMMA;  // p=1; n=0
+
+// uima.ruta.example.BooktitleSTART RULES 
+    Title CW{->MARKONCE(BooktitleSTART)} EnglishStopWord CAP;   // p=1; n=0
+
+// uima.ruta.example.BooktitleEND RULES 
+    SPECIAL NUM COMMA{->MARKONCE(BooktitleEND)} PagesSTART SPECIAL; // p=1; n=0
+}
+BLOCK(Paragraph) Paragraph{} { 
+// uima.ruta.example.Journal RULES 
+    PeriodSep CW[1,3]?{->MARKONCE(Journal, 2, 3)} COMMA VolumeSTART;    // p=7; n=0
+    CW{->MARKONCE(Journal, 1, 4)} SW[1,2]? CW[1,3]? COMMA NUM;  // p=4; n=0
+    CW{->MARKONCE(Journal, 1, 4)} EnglishStopWord[1,2]? CAP COMMA;  // p=1; n=0
+    FirstNameInitial{->MARKONCE(Journal, 1, 3)} CAP COMMA;  // p=1; n=0
+    CW{->MARKONCE(Journal, 1, 8)} EnglishStopWord CW[1,2]? NameLinker CW PeriodSep CAP NameLinker;  // p=1; n=0
+
+// uima.ruta.example.JournalSTART RULES 
+    Title CW{->MARKONCE(JournalSTART)}; // p=14; n=6
+    Title CW{->MARKONCE(JournalSTART)} CW;  // p=6; n=0
+    Title CW{->MARKONCE(JournalSTART)} InInd;   // p=1; n=0
+
+// uima.ruta.example.JournalEND RULES 
+    COMMA{->MARKONCE(JournalEND)} Volume;   // p=14; n=0
+
+// uima.ruta.example.Location RULES 
+    CW{->MARKONCE(Location, 1, 3)} FirstName PeriodSep; // p=2; n=0
+    CW{->MARKONCE(Location, 1, 4)} NameLinker CW LastToken; // p=1; n=0
+
+// uima.ruta.example.LocationSTART RULES 
+    PublisherEND CW{->MARKONCE(LocationSTART)}; // p=3; n=0
+
+// uima.ruta.example.LocationEND RULES 
+    CommaSep CW[1,2]? LastToken{->MARKONCE(LocationEND)};   // p=3; n=0
+
+// uima.ruta.example.Tech RULES 
+    CW{->MARKONCE(Tech, 1, 5)} PERIOD SW PeriodSep CommaSep;    // p=1; n=0
+
+// uima.ruta.example.TechSTART RULES 
+    PERIOD CW{->MARKONCE(TechSTART)} PeriodSep; // p=1; n=0
+
+// uima.ruta.example.TechEND RULES 
+    CommaSep{->MARKONCE(TechEND)} Institution;  // p=1; n=0
+}
+
+ // BOUNDARY CORRECTION RULES: 
+     PublisherSTART{OR(CONTAINS(Reference), CONTAINS(AuthorSTART), CONTAINS(FirstToken), CONTAINS(Booktitle), CONTAINS(BooktitleSTART))->UNMARK(PublisherSTART)};    // p=0; n=5
+VolumeEND{CONTAINS(BooktitleEND)->UNMARK(VolumeEND)};   // p=0; n=1
+TitleEND{CONTAINS(DateEND)->UNMARK(TitleEND)};  // p=0; n=20
+JournalSTART{OR(CONTAINS(Reference), CONTAINS(AuthorSTART), CONTAINS(FirstToken), CONTAINS(Publisher), CONTAINS(FirstName), CONTAINS(Booktitle), CONTAINS(BooktitleSTART), CONTAINS(Tech), CONTAINS(TechSTART), CONTAINS(PublisherInd))->UNMARK(JournalSTART)}; // p=0; n=6
+
+ // CONNECTORS: 
+     BLOCK(ReferenceConnectors) Reference{} { 
+    AuthorSTART{->MARKONCE(Author,1,3)} ANY*? AuthorEND;
+    AuthorSTART{IS(AuthorEND)->MARKONCE(Author)} ;
+    DateSTART{->MARKONCE(Date,1,3)} ANY*? DateEND;
+    DateSTART{IS(DateEND)->MARKONCE(Date)} ;
+    TitleSTART{->MARKONCE(Title,1,3)} ANY*? TitleEND;
+    TitleSTART{IS(TitleEND)->MARKONCE(Title)} ;
+} 
+BLOCK(ParagraphConnectors) Paragraph{} { 
+    PagesSTART{->MARKONCE(Pages,1,3)} ANY*? PagesEND;
+    PagesSTART{IS(PagesEND)->MARKONCE(Pages)} ;
+    PublisherSTART{->MARKONCE(Publisher,1,3)} ANY*? PublisherEND;
+    PublisherSTART{IS(PublisherEND)->MARKONCE(Publisher)} ;
+    InstitutionSTART{->MARKONCE(Institution,1,3)} ANY*? InstitutionEND;
+    InstitutionSTART{IS(InstitutionEND)->MARKONCE(Institution)} ;
+    VolumeSTART{->MARKONCE(Volume,1,3)} ANY*? VolumeEND;
+    VolumeSTART{IS(VolumeEND)->MARKONCE(Volume)} ;
+    BooktitleSTART{->MARKONCE(Booktitle,1,3)} ANY*? BooktitleEND;
+    BooktitleSTART{IS(BooktitleEND)->MARKONCE(Booktitle)} ;
+    JournalSTART{->MARKONCE(Journal,1,3)} ANY*? JournalEND;
+    JournalSTART{IS(JournalEND)->MARKONCE(Journal)} ;
+    LocationSTART{->MARKONCE(Location,1,3)} ANY*? LocationEND;
+    LocationSTART{IS(LocationEND)->MARKONCE(Location)} ;
+    TechSTART{->MARKONCE(Tech,1,3)} ANY*? TechEND;
+    TechSTART{IS(TechEND)->MARKONCE(Tech)} ;
+} 
+EditorSTART{->MARKONCE(Editor,1,3)} ANY*? EditorEND;
+EditorSTART{IS(EditorEND)->MARKONCE(Editor)} ;
+NoteSTART{->MARKONCE(Note,1,3)} ANY*? NoteEND;
+NoteSTART{IS(NoteEND)->MARKONCE(Note)} ;
+
+ // CORRECTION RULES: 

Added: uima/sandbox/ruta/trunk/example-projects/TextRulerExample/script/uima/ruta/example/TraBaL.ruta
URL: http://svn.apache.org/viewvc/uima/sandbox/ruta/trunk/example-projects/TextRulerExample/script/uima/ruta/example/TraBaL.ruta?rev=1491386&view=auto
==============================================================================
--- uima/sandbox/ruta/trunk/example-projects/TextRulerExample/script/uima/ruta/example/TraBaL.ruta (added)
+++ uima/sandbox/ruta/trunk/example-projects/TextRulerExample/script/uima/ruta/example/TraBaL.ruta Mon Jun 10 09:29:41 2013
@@ -0,0 +1,20 @@
+PACKAGE uima.ruta.example;
+
+SCRIPT uima.ruta.example.Features;
+Document{-> CALL(Features)};
+BLOCK(Iteration_1) Document{} {
+// Date(212, 218] "(1994)" -> Date(212, 219] "(1994)."
+(Date{-> UNMARK(Date)} ANY*{-PARTOF(CW)}){-> MARK(Date)} CW;    // p=34; n=0
+
+// Author(7, 21] "Harper, M. P.," -> Author(7, 40] "Harper, M. P., & Helzerman, R. A."
+(Author{-> UNMARK(Author)} ANY*{-PARTOF(LParen)}){-> MARK(Author)} LParen;  // p=26; n=0
+
+// Title(43, 137] "(1995b).   Managing multiple knowledge sources in constraint-based parsing of spoken language." -> Title(54, 137] "Managing multiple knowledge sources in constraint-based parsing of spoken language."
+LParen{STARTSWITH(Title) -> UNMARK(Title, true)} ANY*{-PARTOF(CW)} (CW ANY*{-PARTOF(CW)}){-> MARK(Title)} CW;   // p=6; n=0
+
+// null -> Date(43, 51] "(1995b)."
+(LParen{NEAR(PERIOD, 1, 1, false, true)} ANY*{-PARTOF(CW)}){-PARTOF(Date) -> MARK(Date)} CW;    // p=3; n=0
+
+}
+
+