clean.jape 1.18 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
*  clean.jape
*
* Copyright (c) 1998-2004, The University of Sheffield.
*
*  This file is part of GATE (see http://gate.ac.uk/), and is free
*  software, licenced under the GNU Library General Public License,
*  Version 2, June 1991 (in the distribution as file licence.html,
*  and also available at http://gate.ac.uk/gate/licence.html).
*
*  Diana Maynard, 10 Sep 2001
* 
*  $Id: clean.jape 18106 2014-06-20 17:42:07Z dgmaynard $
*/

Phase:	Clean
Input: TempPerson TempLocation TempOrganization TempDate TempTime TempYear TempZone Street Postcode Email Url Phone Ip TempIdentifier TempSpecs ClosedClass Initials Upper FirstPerson JobTitle HashtagToken HashtagLookup NumberLetter Temp Title UrlPre
Options: control = all

Rule:CleanTempAnnotations
(
 {TempPerson}|
 {TempLocation}|
 {TempOrganization}|
 {TempDate}|
 {TempTime}|
 {TempYear}|
 {TempZone}|
 {Street}|
 {Postcode}|
 {Email}|
 {Url}|
 {Phone}|
 {Ip}|
 {TempIdentifier}|
 {TempSpecs}|
 {ClosedClass}|
 {Upper}|
 {Initials}|
 {FirstPerson}|
 {JobTitle}|
 {HashtagToken}|
 {HashtagLookup}|
 {Title}|
 {UrlPre}|
 {Temp}|
 {NumberLetter}
):temp
-->
{
 gate.AnnotationSet temp = (gate.AnnotationSet)bindings.get("temp");
 outputAS.removeAll(temp);
}