@Override public void labelData() { textAnnotation = tab.createTextAnnotation(data); nerAnnotator.addView(textAnnotation); view = textAnnotation.getView(nerAnnotator.getViewName()); }
@Override public void labelData() { textAnnotation = tab.createTextAnnotation(data); nerAnnotator.addView(textAnnotation); view = textAnnotation.getView(nerAnnotator.getViewName()); }
@Override public void labelData() { textAnnotation = tab.createTextAnnotation(data); nerAnnotator.addView(textAnnotation); view = textAnnotation.getView(nerAnnotator.getViewName()); }
/** * Superclass calls this method either on instantiation or at first call to getView(). Logging * has been disabled because non-static logger is not initialized at the time this is called if * non-lazy initialization is specified. * * @param nerRm configuration parameters passed to constructor */ @Override public void initialize(ResourceManager nerRm) { // set up the configuration if (ViewNames.NER_ONTONOTES.equals(getViewName())) nerRm = new NerOntonotesConfigurator().getConfig(nerRm); else nerRm = new NerBaseConfigurator().getConfig(nerRm); this.params = Parameters.readConfigAndLoadExternalData(nerRm); this.params.forceNewSentenceOnLineBreaks = false; // load the models. synchronized (LOADING_MODELS) { ModelLoader.load(nerRm, viewName, false, this.params); } }
/** * Superclass calls this method either on instantiation or at first call to getView(). Logging * has been disabled because non-static logger is not initialized at the time this is called if * non-lazy initialization is specified. * * @param nerRm configuration parameters passed to constructor */ @Override public void initialize(ResourceManager nerRm) { // set up the configuration if (ViewNames.NER_ONTONOTES.equals(getViewName())) nerRm = new NerOntonotesConfigurator().getConfig(nerRm); else nerRm = new NerBaseConfigurator().getConfig(nerRm); this.params = Parameters.readConfigAndLoadExternalData(nerRm); this.params.forceNewSentenceOnLineBreaks = false; // load the models. synchronized (LOADING_MODELS) { ModelLoader.load(nerRm, viewName, false, this.params); } }
SpanLabelView nerView = new SpanLabelView(getViewName(), ta);
if (ViewNames.NER_ONTONOTES.equals(getViewName())) nerRm = new NerOntonotesConfigurator().getConfig(nerRm); else
SpanLabelView nerView = new SpanLabelView(getViewName(), ta);
SpanLabelView nerView = new SpanLabelView(getViewName(), ta);
viewGenerators.put(nerConll.getViewName(), nerConll); viewGenerators.put(nerOntonotes.getViewName(), nerOntonotes);
viewGenerators.put(nerConll.getViewName(), nerConll); viewGenerators.put(nerOntonotes.getViewName(), nerOntonotes);