1   package eu.fbk.dh.tint.readability.es;
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 SpanishStandardReadability extends SpanishReadability {
14  
15      private static final Logger LOGGER = LoggerFactory.getLogger(SpanishStandardReadability.class);
16  
17      public SpanishStandardReadability(Properties globalProperties, Properties localProperties, Annotation annotation) {
18          super(globalProperties, localProperties, annotation);
19  
20          contentPosList.add("N");
21          contentPosList.add("A");
22          contentPosList.add("V");
23          contentPosList.add("R");
24  
25          simplePosList.add("N");
26          simplePosList.add("V");
27  
28          nonWordPosList.add("F");
29  
30          genericPosDescription.put("A", "Adjective");
31          genericPosDescription.put("C", "Conjunction");
32          genericPosDescription.put("D", "Determiner");
33          genericPosDescription.put("F", "Punctuation");
34          genericPosDescription.put("I", "Interjection");
35          genericPosDescription.put("R", "Adverb");
36          genericPosDescription.put("N", "Noun");
37          genericPosDescription.put("S", "Preposition");
38          genericPosDescription.put("P", "Pronoun");
39          genericPosDescription.put("V", "Verb");
40          genericPosDescription.put("X", "Other");
41          genericPosDescription.put("Z", "Number");
42          genericPosDescription.put("W", "Date");
43  
44      }
45  
46  }