Trees | Indices | Help |
|
---|
|
1 ''' 2 Created on 6 Mar 2012 3 4 @author: Eleftherios Avramidis 5 ''' 6 7 from dataprocessor.input.jcmlreader import JcmlReader 8 import sys 9 10 11 if __name__ == '__main__': 12 dataset = JcmlReader(sys.argv[1]).get_dataset() 13 expressions = sys.argv[2:] 14 print expressions 15 # ["bb_.*"], #baseline 16 # #20first with gain radio with manual removal 17 # ["tgt-1_berkeley-n","src_grammar_subject_verb_agreement_matches","src_grammar_noun_adjective_confusion_chars","src_grammar_wrong_word_matches","tgt-1_lgt_pp_v_plural_5_","tgt-1_lgt_nom_adj_fem_6_","tgt-1_lgt_double_punctuation","tgt-1_lgt_comma_parenthesis_whitespace","src_grammar_wrong_word","tgt-1_lgt_pp_v_singular_4_","src_style_do_not_use_complex_coordinations_chars","src_style_avoid_multiple_negation_chars","src_grammar_wrong_verb_form", "src_grammar_np_number_agreement_chars", "tgt-1_lgt_det_nom_masc_3", "src_style_repeat_modal_verb", "src_grammar_np_number_agreement", "src_style_disambiguate_that", "src_style_verb_close_to_subject_chars"], 18 # #20first with infgain and manual removal of obvious correlations 19 # ["tgt-1_berkeley-best-parse-confidence","tgt-1_berkley-loglikelihood","src_berkley-loglikelihood","src_berkeley-avg-confidence","src_parse-NP","tgt-1_berkeley-avg-confidence","tgt-1_parse-NP","src_parse-NN","tgt-1_parse-PP","tgt-1_berkeley-n_ratio","src_parse-VB","judgement_id","src_berkeley-n","tgt-1_parse-S","tgt-1_parse-NP_ratio","tgt-1_berkeley-n","tgt-1_parse-VB_ratio","tgt-1_parse-NN_ratio","tgt-1_d_a5_avg","tgt-1_parse-PP_ratio"], 20 # #source_target_language_tools 21 # #["src_grammar.*", "src_style.*", "tgt-1_lgt_.*"] 22 # ["tgt-1_berkeley-n", "tgt-1_berkeley.*ratio"] 23 # ] 24 attributes = dataset.select_attribute_names(expressions) 25 if attributes: 26 print ",".join(attributes) 27 # print '["%s"]' % '","'.join(attributes) 28
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jul 18 11:46:14 2014 | http://epydoc.sourceforge.net |