Skip to content

Commit

Permalink
Tiny cleanup; no functional changes
Browse files Browse the repository at this point in the history
  • Loading branch information
manning committed Jul 22, 2024
1 parent 0e39b37 commit afb7692
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/edu/stanford/nlp/pipeline/RelationExtractorAnnotator.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package edu.stanford.nlp.pipeline;
import edu.stanford.nlp.util.logging.Redwood;

import java.util.*;

Expand All @@ -20,18 +19,19 @@
import edu.stanford.nlp.util.ArraySet;
import edu.stanford.nlp.util.CoreMap;
import edu.stanford.nlp.util.StringUtils;
import edu.stanford.nlp.util.logging.Redwood;

/**
* Annotating relations between entities produced by the NER system.
* @author Sonal Gupta (sonalg@stanford.edu)
*
* @author Sonal Gupta (sonalg@stanford.edu)
*/

public class RelationExtractorAnnotator implements Annotator {

/** A logger for this class */
private static Redwood.RedwoodChannels log = Redwood.channels(RelationExtractorAnnotator.class);
MachineReading mr;
private static final Redwood.RedwoodChannels log = Redwood.channels(RelationExtractorAnnotator.class);
private final MachineReading mr;
private static boolean verbose = false;

static boolean getVerbose(Properties props) {
Expand Down Expand Up @@ -128,8 +128,8 @@ public Set<Class<? extends CoreAnnotation>> requirementsSatisfied() {
)));
}

public static void main(String[] args){
try{
public static void main(String[] args) {
try {
Properties props = StringUtils.argsToProperties(args);
props.setProperty("annotators", "tokenize,ssplit,lemma,pos,parse,ner");
StanfordCoreNLP pipeline = new StanfordCoreNLP();
Expand Down

0 comments on commit afb7692

Please sign in to comment.