Ejemplo n.º 1
0
 public static void SetTrainingPath(Properties props)
 {
     trainingPath         = StatisticalCorefProperties.TrainingPath(props);
     pairwiseModelsPath   = trainingPath + "pairwise_models/";
     clusteringModelsPath = trainingPath + "clustering_models/";
     MakeDir(pairwiseModelsPath);
     MakeDir(clusteringModelsPath);
 }
 public ClusteringCorefAlgorithm(Properties props, Dictionaries dictionaries)
     : this(props, dictionaries, StatisticalCorefProperties.ClusteringModelPath(props), StatisticalCorefProperties.ClassificationModelPath(props), StatisticalCorefProperties.RankingModelPath(props), StatisticalCorefProperties.AnaphoricityModelPath
                (props), StatisticalCorefProperties.WordCountsPath(props))
 {
 }
Ejemplo n.º 3
0
 /// <exception cref="System.Exception"/>
 private static void Preprocess(Properties props, Dictionaries dictionaries, bool isTrainSet)
 {
     (isTrainSet ? new DatasetBuilder(StatisticalCorefProperties.MinClassImbalance(props), StatisticalCorefProperties.MaxTrainExamplesPerDocument(props)) : new DatasetBuilder()).RunFromScratch(props, dictionaries);
     new MetadataWriter(isTrainSet).RunFromScratch(props, dictionaries);
     new FeatureExtractorRunner(props, dictionaries).RunFromScratch(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))
 {
 }