Exemplo n.º 1
0
  private static CorefMentionFinder getMentionFinder(
      Properties props, Dictionaries dictionaries, HeadFinder headFinder)
      throws ClassNotFoundException, IOException {

    switch (CorefProperties.getMDType(props)) {
      case RULE:
        return new RuleBasedCorefMentionFinder(headFinder, props);

      case HYBRID:
        return new HybridCorefMentionFinder(headFinder, props);

      case DEPENDENCY:
      default: // default is dependency
        return new DependencyCorefMentionFinder(props);
    }
  }