This repository was archived by the owner on Apr 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
src/main/java/org/lambda3/text/simplification/discourse/processing Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -46,20 +46,16 @@ public class Processor {
4646 private final DiscourseExtractor discourseExtractor ;
4747 private final Logger logger = LoggerFactory .getLogger (getClass ());
4848
49- private final Config config ;
50-
5149 public Processor (Config config ) {
52- this .config = config .getConfig ("discourse-simplification" );
53-
54- this .discourseTreeCreator = new DiscourseTreeCreator (this .config );
55- this .discourseExtractor = new DiscourseExtractor (this .config );
50+ this .discourseTreeCreator = new DiscourseTreeCreator (config );
51+ this .discourseExtractor = new DiscourseExtractor (config );
5652
5753 logger .info ("Processor initialized" );
58- logger .info ("\n {}" , ConfigUtils .prettyPrint (this . config ));
54+ logger .info ("\n {}" , ConfigUtils .prettyPrint (config ));
5955 }
6056
6157 public Processor () {
62- this (ConfigFactory .load ());
58+ this (ConfigFactory .load (). getConfig ( "discourse-simplification" ) );
6359 }
6460
6561 public List <OutSentence > process (File file , ProcessingType type ) throws FileNotFoundException {
You can’t perform that action at this time.
0 commit comments