All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.ac.shef.dcs.sti.STIConstantProperty Maven / Gradle / Ivy

package uk.ac.shef.dcs.sti;

import java.util.ArrayList;
import java.util.List;

/**
 */
public class STIConstantProperty {

    public static final double FREEBASE_TOTAL_TOPICS = 47560900;
    public static final boolean SOLR_COMMIT_PER_FILE = true;

    public static final boolean ENFORCE_OSPD = true;
    public static final boolean BOW_ENTITY_INCLUDE_INDIRECT_ATTRIBUTE = true;
    public static final boolean BOW_DISCARD_SINGLE_CHAR = true; //whether discard single char words from BoW
    public static final boolean BOW_CLAZZ_INCLUDE_URI = true;
    public static final List FUNCTIONAL_STOPWORDS = new ArrayList<>();
    public static final boolean REVISE_RELATION_ANNOTATION_BY_DC = true;
    public static final int UPDATE_PHASE_MAX_ITERATIONS = 10;

    public static final double[] SCORER_ENTITY_CONTEXT_WEIGHT =
            new double[]{1.0, 0.5, 1.0, 0.5}; //row,column, column header, tablecontext all
    public static final double[] SCORER_CLAZZ_CONTEXT_WEIGHT =
            new double[]{1.0, 1.0, 1.0, 1.0}; //all 1.0
    //header,column,out trivial, out important
    public static final double[] SCORER_RELATION_CONTEXT_WEIGHT=
            new double[]{1.0, 0.0, 1.0, 1.0};    //header text, column, out-trivial, out-important
    public static final double ATTRIBUTE_MATCHER_MIN_SCORE=0.5; //for TMP, 0.01; for SMP, 0.5; for JI 0.8
    //if the attributeMatcher produces a score lower than this, the score will be set to 0

    static {
        FUNCTIONAL_STOPWORDS.add("of");
        FUNCTIONAL_STOPWORDS.add("in");
        FUNCTIONAL_STOPWORDS.add("the");
        FUNCTIONAL_STOPWORDS.add("from");
        FUNCTIONAL_STOPWORDS.add("to");
        FUNCTIONAL_STOPWORDS.add("at");
        FUNCTIONAL_STOPWORDS.add("on");
        FUNCTIONAL_STOPWORDS.add("for");
        FUNCTIONAL_STOPWORDS.add("by");
        FUNCTIONAL_STOPWORDS.add("till");
        FUNCTIONAL_STOPWORDS.add("until");
        FUNCTIONAL_STOPWORDS.add("off");
        FUNCTIONAL_STOPWORDS.add("onto");
        FUNCTIONAL_STOPWORDS.add("into");
        FUNCTIONAL_STOPWORDS.add("under");
        FUNCTIONAL_STOPWORDS.add("below");
        FUNCTIONAL_STOPWORDS.add("over");
        FUNCTIONAL_STOPWORDS.add("above");
        FUNCTIONAL_STOPWORDS.add("across");
        FUNCTIONAL_STOPWORDS.add("through");

    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy