Skip to content

Commit afb7692

Browse files
committedJul 22, 2024·
Tiny cleanup; no functional changes
1 parent 0e39b37 commit afb7692

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎src/edu/stanford/nlp/pipeline/RelationExtractorAnnotator.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
package edu.stanford.nlp.pipeline;
2-
import edu.stanford.nlp.util.logging.Redwood;
32

43
import java.util.*;
54

@@ -20,18 +19,19 @@
2019
import edu.stanford.nlp.util.ArraySet;
2120
import edu.stanford.nlp.util.CoreMap;
2221
import edu.stanford.nlp.util.StringUtils;
22+
import edu.stanford.nlp.util.logging.Redwood;
2323

2424
/**
2525
* Annotating relations between entities produced by the NER system.
26-
* @author Sonal Gupta (sonalg@stanford.edu)
2726
*
27+
* @author Sonal Gupta (sonalg@stanford.edu)
2828
*/
2929

3030
public class RelationExtractorAnnotator implements Annotator {
3131

3232
/** A logger for this class */
33-
private static Redwood.RedwoodChannels log = Redwood.channels(RelationExtractorAnnotator.class);
34-
MachineReading mr;
33+
private static final Redwood.RedwoodChannels log = Redwood.channels(RelationExtractorAnnotator.class);
34+
private final MachineReading mr;
3535
private static boolean verbose = false;
3636

3737
static boolean getVerbose(Properties props) {
@@ -128,8 +128,8 @@ public Set<Class<? extends CoreAnnotation>> requirementsSatisfied() {
128128
)));
129129
}
130130

131-
public static void main(String[] args){
132-
try{
131+
public static void main(String[] args) {
132+
try {
133133
Properties props = StringUtils.argsToProperties(args);
134134
props.setProperty("annotators", "tokenize,ssplit,lemma,pos,parse,ner");
135135
StanfordCoreNLP pipeline = new StanfordCoreNLP();

0 commit comments

Comments
 (0)
Please sign in to comment.