1   package eu.fbk.dh.tint.readability.it;
2   
3   import edu.stanford.nlp.pipeline.Annotation;
4   import org.slf4j.Logger;
5   import org.slf4j.LoggerFactory;
6   
7   import java.util.Properties;
8   
9   /**
10   * Created by alessio on 21/09/16.
11   */
12  
13  public class ItalianStandardReadability extends ItalianReadability {
14  
15      private static final Logger LOGGER = LoggerFactory.getLogger(ItalianStandardReadability.class);
16  
17      public ItalianStandardReadability(Properties globalProperties, Properties localProperties, Annotation annotation) {
18          super(globalProperties, localProperties, annotation);
19  
20          contentPosList.add("S");
21          contentPosList.add("A");
22          contentPosList.add("V");
23          contentPosList.add("B");
24  
25          simplePosList.add("S");
26          simplePosList.add("V");
27  
28          nonWordPosList.add("F");
29  
30          genericPosDescription.put("A", "Adjective");
31          genericPosDescription.put("B", "Adverb");
32          genericPosDescription.put("S", "Noun");
33          genericPosDescription.put("E", "Preposition");
34          genericPosDescription.put("C", "Conjunction");
35          genericPosDescription.put("P", "Pronoun");
36          genericPosDescription.put("R", "Determiner");
37          genericPosDescription.put("F", "Punctuation");
38          genericPosDescription.put("D", "Adj. (det.)");
39          genericPosDescription.put("V", "Verb");
40          genericPosDescription.put("X", "Other");
41          genericPosDescription.put("N", "Number");
42  
43      }
44  
45  }