// Path: src/hu/u_szeged/utils/Stopword.java
// public class Stopword implements Serializable {
// 
//   public static final long serialVersionUID = 1L;
//   public static Set<String> stopwords = null;
// 
//   public Stopword() {
//     if (stopwords != null) {
//       return;
//     }
// 
//     stopwords = new HashSet<String>();
//     NLPUtils.readDocToCollection(System.getProperty("user.dir") + "/resources/stopwords/stopwords_" + SzTECoreNLP.lang + ".txt", stopwords,
//         Charset.forName("UTF-8"));
//   }
// 
//   /**
//    * Returns true if the given string is a stop word.
//    */
//   public boolean isStopword(String str) {
//     return stopwords.contains(str.toLowerCase());
//   }
// 
//   public boolean isStopword(CoreLabel ew) {
//     String lemma = ew.get(LemmaAnnotation.class);
//     if (lemma == null) {
//       System.err.println("No lemma for token " + ew);
//     } else {
//       lemma = lemma.toLowerCase();
//     }
//     return isStopword(ew.word().toLowerCase()) || (lemma != null && isStopword(lemma));
//   }
// }


import hu.u_szeged.utils.Stopword;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import edu.stanford.nlp.ling.CoreAnnotation;
import edu.stanford.nlp.ling.CoreAnnotations;
import edu.stanford.nlp.ling.CoreAnnotations.SentencesAnnotation;
import edu.stanford.nlp.ling.CoreLabel;
import edu.stanford.nlp.util.CoreMap;
import edu.stanford.nlp.util.Timing;
package edu.stanford.nlp.pipeline;




public class StopWordAnnotator implements Annotator {

  private Timing timer;
  private boolean verbose;
// Path: src/hu/u_szeged/utils/Stopword.java
// public class Stopword implements Serializable {
// 
//   public static final long serialVersionUID = 1L;
//   public static Set<String> stopwords = null;
// 
//   public Stopword() {
//     if (stopwords != null) {
//       return;
//     }
// 
//     stopwords = new HashSet<String>();
//     NLPUtils.readDocToCollection(System.getProperty("user.dir") + "/resources/stopwords/stopwords_" + SzTECoreNLP.lang + ".txt", stopwords,
//         Charset.forName("UTF-8"));
//   }
// 
//   /**
//    * Returns true if the given string is a stop word.
//    */
//   public boolean isStopword(String str) {
//     return stopwords.contains(str.toLowerCase());
//   }
// 
//   public boolean isStopword(CoreLabel ew) {
//     String lemma = ew.get(LemmaAnnotation.class);
//     if (lemma == null) {
//       System.err.println("No lemma for token " + ew);
//     } else {
//       lemma = lemma.toLowerCase();
//     }
//     return isStopword(ew.word().toLowerCase()) || (lemma != null && isStopword(lemma));
//   }
// }


// Path: src/edu/stanford/nlp/pipeline/StopWordAnnotator.java
import hu.u_szeged.utils.Stopword;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import edu.stanford.nlp.ling.CoreAnnotation;
import edu.stanford.nlp.ling.CoreAnnotations;
import edu.stanford.nlp.ling.CoreAnnotations.SentencesAnnotation;
import edu.stanford.nlp.ling.CoreLabel;
import edu.stanford.nlp.util.CoreMap;
import edu.stanford.nlp.util.Timing;

package edu.stanford.nlp.pipeline;




public class StopWordAnnotator implements Annotator {

  private Timing timer;
  private boolean verbose;
  public static Stopword stopWord;