public NERCombinerAnnotator(boolean verbose, String... classifiers) throws IOException, ClassNotFoundException { this(new NERClassifierCombiner(classifiers), verbose); }
public static NERClassifierCombiner getClassifier(ObjectInputStream ois, Properties props) throws IOException, ClassNotFoundException, ClassCastException { return new NERClassifierCombiner(ois, props); }
public NERCombinerAnnotator(boolean verbose) throws IOException, ClassNotFoundException { this(new NERClassifierCombiner(new Properties()), verbose); }
nerCombiner = new NERClassifierCombiner(applyNumericClassifiers, nerLanguage, useSUTime, combinerProperties, models); } catch (IOException e) {
PropertiesUtils.overWriteProperties(combinerProperties, sutimeProps); NERClassifierCombiner nerCombiner = new NERClassifierCombiner(applyNumericClassifiers, nerLanguage, useSUTime, combinerProperties, loadPaths);
public NERCombinerAnnotator(boolean verbose, String... classifiers) throws IOException, ClassNotFoundException { this(new NERClassifierCombiner(classifiers), verbose); }
public static NERClassifierCombiner getClassifier(ObjectInputStream ois, Properties props) throws IOException, ClassNotFoundException, ClassCastException { return new NERClassifierCombiner(ois, props); }
public NERCombinerAnnotator(boolean verbose) throws IOException, ClassNotFoundException { this(new NERClassifierCombiner(new Properties()), verbose); }
protected void load(final String posTaggerModel, List<String> nerModels) { POS_TAGGER_MODEL_PATH = posTaggerModel; if (nerModels != null) { if (nerModels.isEmpty()) { nerModels.add(StanfordConst.STANFORD_DEFAULT_NER_3CLASS_EN_MODEL); nerModels.add(StanfordConst.STANFORD_DEFAULT_NER_7CLASS_EN_MODEL); } // STUPID NER, throw IOException in the constructor ... : ( ners = nerModels.stream().map(path -> { NERClassifierCombiner nerClassifierCombiner = null; try { nerClassifierCombiner = new NERClassifierCombiner(path); } catch (IOException e) { e.printStackTrace(); } return nerClassifierCombiner; }).collect(Collectors.toList()); } } }
public NERCombinerAnnotator(boolean verbose) throws IOException, ClassNotFoundException { VERBOSE = verbose; timerStart("Loading NER combiner model..."); ner = new NERClassifierCombiner(new Properties()); timerStop(); }
public NERCombinerAnnotator(boolean verbose) throws IOException, ClassNotFoundException { VERBOSE = verbose; timerStart("Loading NER combiner model..."); ner = new NERClassifierCombiner(new Properties()); timerStop(); }
public NERCombinerAnnotator(boolean verbose, String... classifiers) throws IOException, ClassNotFoundException { VERBOSE = verbose; timerStart("Loading NER combiner model..."); ner = new NERClassifierCombiner(classifiers); timerStop(); }
public NERCombinerAnnotator(boolean verbose, String... classifiers) throws IOException, ClassNotFoundException { VERBOSE = verbose; timerStart("Loading NER combiner model..."); ner = new NERClassifierCombiner(classifiers); timerStop(); }
NumberSequenceClassifier.USE_SUTIME_PROPERTY, NumberSequenceClassifier.USE_SUTIME_DEFAULT); nerCombiner = new NERClassifierCombiner(applyNumericClassifiers, useSUTime, properties, models.toArray(new String[models.size()]));
NumberSequenceClassifier.USE_SUTIME_DEFAULT); nerCombiner = new NERClassifierCombiner(applyNumericClassifiers, useSUTime, properties, models.toArray(new String[models.size()]));
NumberSequenceClassifier.USE_SUTIME_PROPERTY, NumberSequenceClassifier.USE_SUTIME_DEFAULT); nerCombiner = new NERClassifierCombiner(applyNumericClassifiers, useSUTime, models.toArray(new String[models.size()]));
nerCombiner = new NERClassifierCombiner(applyNumericClassifiers, nerLanguage, useSUTime, combinerProperties, models); } catch (IOException e) {
PropertiesUtils.overWriteProperties(combinerProperties, sutimeProps); NERClassifierCombiner nerCombiner = new NERClassifierCombiner(applyNumericClassifiers, nerLanguage, useSUTime, combinerProperties, loadPaths);