Skip to content

Commit

Permalink
Suppress the StanfordNLP logger.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaglam committed Sep 29, 2022
1 parent 98de492 commit a055bea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
import de.jplag.AbstractParser;
import de.jplag.ParsingException;
import de.jplag.Token;

import edu.stanford.nlp.ling.CoreLabel;
import edu.stanford.nlp.pipeline.CoreDocument;
import edu.stanford.nlp.pipeline.StanfordCoreNLP;
import edu.stanford.nlp.util.logging.RedwoodConfiguration;

public class ParserAdapter extends AbstractParser {

Expand All @@ -33,6 +33,7 @@ public class ParserAdapter extends AbstractParser {
private int currentLineBreakIndex;

public ParserAdapter() {
RedwoodConfiguration.errorLevel().apply();
Properties properties = new Properties();
properties.put(ANNOTATORS_KEY, ANNOTATORS_VALUE);
this.pipeline = new StanfordCoreNLP(properties);
Expand Down

0 comments on commit a055bea

Please sign in to comment.