Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 4
0
 def test_weight_val(self):
     self.st.develop = False
     weight(self.st)
Esempio n. 5
0
 def test_weight_dev(self):
     self.st.validate = False
     weight(self.st)
Esempio n. 6
0
 def test_weight_val(self):
     self.st.develop = False
     weight(self.st)
Esempio n. 7
0
 def test_weight_dev(self):
     self.st.validate = False
     weight(self.st)