Open danyaljj opened 7 years ago
This is true for some annotators, but not others (Stanford components are not lazily loaded, and possibly some CCG annotators)
Relevant to this why can't we make our dependency and Stanford components lazy? https://github.com/CogComp/cogcomp-nlp/blob/master/depparse/src/main/java/edu/illinois/cs/cogcomp/depparse/DepAnnotator.java#L37-L42
Now that loading the models in annotators is lazy, I suppose we don't need these if-elses? https://github.com/CogComp/cogcomp-nlp/blob/master/pipeline/src/main/java/edu/illinois/cs/cogcomp/pipeline/main/PipelineFactory.java#L183-L284