AƱotador
Temporal Tagger
time.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 time {
15 
16  private time() {
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 MyHour 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 MyMinute 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 MySecond 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 MyPartDay implements CoreAnnotation<String> {
52 
53  @Override
54  public Class<String> getType() {
55  return ErasureUtils.<Class<String>>uncheckedCast(String.class);
56  }
57  }
58 
59 
60 }
oeg.tagger.core.time.annotation.time
Definition: time.java:14