Revision 1962 tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/mesures1/AllMesuresMacro.groovy

AllMesuresMacro.groovy (revision 1962)
19 19

  
20 20
@Field @Option(name="tsvFile",usage="", widget="FileSave", required=true, def="result.tsv")
21 21
File tsvFile
22
@Field @Option(name="default_schema_type",usage="", widget="String", required=true, def="CHAINE")
23
String default_schema_type
22

  
23
@Field @Option(name="default_schema_ursql", usage="TYPE@PROP=REGEX", widget="String", required=true, def="CHAINE")
24
String default_schema_ursql
25

  
24 26
@Field @Option(name="default_minimum_schema_size", usage="", widget="Integer", required=true, def="3")
25 27
int default_minimum_schema_size
26
@Field @Option(name="default_schema_property_name",usage="", widget="String", required=false, def="")
27
String default_schema_property_name
28
@Field @Option(name="default_schema_property_value",usage="", widget="String", required=false, def=".*")
29
String default_schema_property_value
28

  
29

  
30 30
@Field @Option(name="schema_property_display_name",usage="", widget="String", required=false, def="REF")
31 31
String schema_property_display_name
32
@Field @Option(name="default_unit_type",usage="", widget="String", required=false, def="MENTION")
33
String default_unit_type
34
@Field @Option(name="default_unit_property_name", usage="", widget="String", required=false, def="")
35
String default_unit_property_name
36
@Field @Option(name="default_unit_property_value", usage="", widget="String", required=false, def=".*")
37
String default_unit_property_value
32

  
33
@Field @Option(name="default_unit_ursql", usage="TYPE@PROP=REGEX", widget="String", required=false, def="MENTION")
34
String default_unit_ursql
35

  
38 36
@Field @Option(name="default_word_property", usage="", widget="String", required=false, def="word")
39 37
String default_word_property
40 38
@Field @Option(name="default_pos_property", usage="", widget="String", required=false, def="CATEGORIE")
......
56 54
	println "*** Computing mesures for $corpus" // each macro return a "result" and a "data"
57 55

  
58 56
	params = [
59
		"unit_type":default_unit_type,
60
		"unit_property_name":"",
61
		"unit_property_value":"",
57
		"unit_ursql":default_unit_ursql,
62 58
	]
63
	returnedValue = execMesure(DensiteReferentielleMacro, line, corpus, params)
59
	returnedValue = execMesure(ReferentialDensityMacro, line, corpus, params)
64 60
	line << returnedValue["result"]
65 61
	
66 62
	params = [
67
		"schema_type":default_schema_type,
63
		"schema_ursql":default_schema_ursql,
68 64
		"minimum_schema_size":default_minimum_schema_size,
69
		"schema_property_name":"",
70
		"schema_property_value":"",
71
		"unit_type":default_unit_type,
72
		"unit_property_name":"",
73
		"unit_property_value":"",
65
		"unit_ursql":default_unit_ursql,
74 66
	]
75
	returnedValue = execMesure(LongueurMoyenneMacro, line, corpus, params)
67
	returnedValue = execMesure(MeanDistanceMacro, line, corpus, params)
76 68
	line << returnedValue["result"]
77 69
	
78 70
	params = [
79
		"schema_type":default_schema_type,
71
		"schema_ursql":default_schema_ursql,
80 72
		"minimum_schema_size":default_minimum_schema_size,
81
		"schema_property_name":"",
82
		"schema_property_value":"",
83
		"unit_type":default_unit_type,
84
		"unit_property_name":"",
85
		"unit_property_value":"",
73
		"unit_ursql":default_unit_ursql,
86 74
	]
87
	returnedValue = execMesure(NombreDeChainesMacro, line, corpus, params)
75
	returnedValue = execMesure(NumberOfSchemaMacro, line, corpus, params)
88 76
	line << returnedValue["result"]
89 77
	
90 78
	params = [
91
		"schema_type":default_schema_type,
79
		"schema_ursql":default_schema_ursql,
92 80
		"minimum_schema_size":default_minimum_schema_size,
93
		"schema_property_name":"",
94
		"schema_property_value":"",
95 81
		"schema_property_display_name":schema_property_display_name,
96
		"unit_type":default_unit_type,
97
		"unit_property_name":"CATEGORIE",
98
		"unit_property_value":"GN Défini|GN Démonstratif|Nom Propre",
82
		"unit_ursql":default_unit_ursql+"@CATEGORIE=GN Défini|GN Démonstratif|Nom Propre",
99 83
		"word_property":default_word_property,
100 84
	]
101
	returnedValue = execMesure(CoefficientStabiliteMacro, line, corpus, params)
85
	returnedValue = execMesure(StabilityScoreMacro, line, corpus, params)
102 86
	line << returnedValue["result"]
103 87
	
104 88
	params = [
105
		"schema_type":default_schema_type,
89
		"schema_ursql":default_schema_ursql,
106 90
		"minimum_schema_size":default_minimum_schema_size,
107
		"schema_property_name":"",
108
		"schema_property_value":"",
109
		"unit_type":default_unit_type,
110
		"unit_property_name":"",
111
		"unit_property_value":"",
91
		"unit_ursql":default_unit_ursql,
112 92
	]
113
	returnedValue = execMesure(DistanceInterMaillonnaireMacro, line, corpus, params)
93
	returnedValue = execMesure(InterDistanceMacro, line, corpus, params)
114 94
	line << returnedValue["result"]
115 95

  
116 96
	params = [
117
		"schema_type":default_schema_type,
97
		"schema_ursql":default_schema_ursql,
118 98
		"minimum_schema_size":default_minimum_schema_size,
119
		"schema_property_name":"",
120
		"schema_property_value":"",
121
		"unit_type":default_unit_type,
122
		"unit_property_name":"",
123
		"unit_property_value":"",
99
		"unit_ursql":default_unit_ursql,
124 100
		"word_property":default_pos_property,
125 101
	]
126
	returnedValue = execMesure(NatureDuPremierMaillonMacro, line, corpus, params)
102
	returnedValue = execMesure(NatureOfTheFirstUnitMacro, line, corpus, params)
127 103
	line << returnedValue["data"]
128 104
	
129 105
	params = [
130
		"schema_type":default_schema_type,
106
		"schema_ursql":default_schema_ursql,
131 107
		"minimum_schema_size":default_minimum_schema_size,
132
		"schema_property_name":"",
133
		"schema_property_value":"",
134 108
		"schema_property_display_name":schema_property_display_name,
135
		"unit_type":default_unit_type,
136
		"unit_property_name":"",
137
		"unit_property_value":"",
109
		"unit_ursql":default_unit_ursql,
138 110
		"word_property":default_pos_property,
139 111
	]
140
	returnedValue = execMesure(CategorieGrammaticaleMacro, line, corpus, params)
112
	returnedValue = execMesure(GrammaticalCategoryMacro, line, corpus, params)
141 113
	line << returnedValue["data"]
142 114
}
143 115

  

Also available in: Unified diff