Exemple #1
0
def create_sample_weightings(setting):
    """
    Add prediction and weightings to the sample instances
    
    This assumes corpus instance files in de ./inst subdir and classifier
    output in the ./clas subdir.
    
    Fills the instance fields "pred_relation" and "pred_weight" 
    """
    weight(setting)
Exemple #2
0
def exp(setting):
    """
    perform alignment experiment
    """
    exp_init(setting)
    create_parts(setting)
    extract(setting)
    sample(setting)
    classify(setting)
    weight(setting)
    match(setting)
    merge(setting)
    evaluate(setting)
    exp_exit(setting)
Exemple #3
0
def exp(setting):
    """
    perform alignment experiment
    """
    exp_init(setting)
    create_parts(setting)
    extract(setting)
    sample(setting)
    classify(setting)
    weight(setting)
    match(setting)
    merge(setting)
    evaluate(setting)
    exp_exit(setting)
Exemple #4
0
 def test_weight_val(self):
     self.st.develop = False
     weight(self.st)
Exemple #5
0
 def test_weight_dev(self):
     self.st.validate = False
     weight(self.st)
Exemple #6
0
 def test_weight_val(self):
     self.st.develop = False
     weight(self.st)
Exemple #7
0
 def test_weight_dev(self):
     self.st.validate = False
     weight(self.st)