AƱotador
Temporal Tagger
temporal.java
Go to the documentation of this file.
1 package oeg.tagger.core.time.annotation;
2 
3 import edu.stanford.nlp.ling.CoreAnnotation;
4 import edu.stanford.nlp.util.CoreMap;
5 import edu.stanford.nlp.util.ErasureUtils;
6 
7 import java.util.List;
8 
14 public class temporal {
15 
16  private temporal() {
17  }
18 
19  public static class MyTokensAnnotation implements CoreAnnotation<List<? extends CoreMap>> {
20 
21  @Override
22  public Class<List<? extends CoreMap>> getType() {
23  return ErasureUtils.<Class<List<? extends CoreMap>>>uncheckedCast(List.class);
24  }
25  }
26 
27  public static class MyTemporalAnnotation implements CoreAnnotation<String> {
28 
29  @Override
30  public Class<String> getType() {
31  return ErasureUtils.<Class<String>>uncheckedCast(String.class);
32  }
33  }
34 
35  public static class MyNormalizedTemporalAnnotation implements CoreAnnotation<String> {
36 
37  @Override
38  public Class<String> getType() {
39  return ErasureUtils.<Class<String>>uncheckedCast(String.class);
40  }
41  }
42 
43  public static class MyTypeTemporalAnnotation implements CoreAnnotation<String> {
44 
45  @Override
46  public Class<String> getType() {
47  return ErasureUtils.<Class<String>>uncheckedCast(String.class);
48  }
49  }
50 
51  public static class MyRuleAnnotation implements CoreAnnotation<String> {
52 
53  @Override
54  public Class<String> getType() {
55  return ErasureUtils.<Class<String>>uncheckedCast(String.class);
56  }
57  }
58 
59  public static class MyValueAnnotation implements CoreAnnotation<Number> {
60 
61  @Override
62  public Class<Number> getType() {
63  return ErasureUtils.<Class<Number>>uncheckedCast(Number.class);
64  }
65  }
66 
67  public static class MyStringValueAnnotation implements CoreAnnotation<String> {
68 
69  @Override
70  public Class<String> getType() {
71  return ErasureUtils.<Class<String>>uncheckedCast(Number.class);
72  }
73  }
74 
75 }
oeg.tagger.core.time.annotation.temporal
Definition: temporal.java:14