public NeuralCorefAlgorithm(Properties props, Dictionaries dictionaries) { greedyness = NeuralCorefProperties.Greedyness(props); maxMentionDistance = CorefProperties.MaxMentionDistance(props); maxMentionDistanceWithStringMatch = CorefProperties.MaxMentionDistanceWithStringMatch(props); model = IOUtils.ReadObjectAnnouncingTimingFromURLOrClasspathOrFileSystem(log, "Loading coref model", NeuralCorefProperties.ModelPath(props)); embeddingExtractor = new EmbeddingExtractor(CorefProperties.Conll(props), IOUtils.ReadObjectAnnouncingTimingFromURLOrClasspathOrFileSystem(log, "Loading coref embeddings", NeuralCorefProperties.PretrainedEmbeddingsPath(props)), model.GetWordEmbeddings ()); featureExtractor = new CategoricalFeatureExtractor(props, dictionaries); }
public StatisticalCorefAlgorithm(Properties props, Dictionaries dictionaries) : this(props, dictionaries, StatisticalCorefProperties.WordCountsPath(props), StatisticalCorefProperties.RankingModelPath(props), CorefProperties.MaxMentionDistance(props), CorefProperties.MaxMentionDistanceWithStringMatch(props), StatisticalCorefProperties .PairwiseScoreThresholds(props)) { }