1   package eu.fbk.dh.tint.readability;
2   
3   import edu.stanford.nlp.ling.CoreAnnotation;
4   import eu.fbk.utils.gson.JSONLabel;
5   
6   /**
7    * Created by giovannimoretti on 19/05/16.
8    */
9   public class ReadabilityAnnotations {
10  
11      @JSONLabel("contentWord")
12      public static class ContentWord implements CoreAnnotation<Boolean> {
13  
14          public Class<Boolean> getType() {
15              return Boolean.class;
16          }
17      }
18  
19      @JSONLabel("literalWord")
20      public static class LiteralWord implements CoreAnnotation<Boolean> {
21  
22          public Class<Boolean> getType() {
23              return Boolean.class;
24          }
25      }
26  
27      @JSONLabel("readability")
28      public static class ReadabilityAnnotation implements CoreAnnotation<Readability> {
29  
30          public Class<Readability> getType() {
31              return Readability.class;
32          }
33      }
34  
35      @JSONLabel("hyphenation")
36      public static class HyphenationAnnotation implements CoreAnnotation<String> {
37  
38          public Class<String> getType() {
39              return String.class;
40          }
41      }
42  
43      @JSONLabel("difficultyLevel")
44      public static class DifficultyLevelAnnotation implements CoreAnnotation<Integer> {
45  
46          public Class<Integer> getType() {
47              return Integer.class;
48          }
49      }
50  
51  }