Revision 2144 tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/SchemasListMacro.groovy

SchemasListMacro.groovy (revision 2144)
41 41
int maximum_schema_size
42 42
@Field @Option(name="unit_ursql", usage="TYPE@PROP=VALUE", widget="String", required=false, def="MENTION")
43 43
String unit_ursql
44

  
44
@Field @Option(name="strict_inclusion", usage="Units must be strictly included into corpus matches", widget="Boolean", required=true, def="true")
45
boolean strict_inclusion
45 46
@Field @Option(name="word_property", usage="", widget="StringArray", metaVar="word	lemma	frlemma	frolemma	#forme#	id", required=false, def="word")
46 47
String word_property
47 48

  
......
81 82
		word_prop = corpus.getProperty(word_property)
82 83
	}
83 84
	
84
	def schemas = AnalecUtils.selectSchemasInCorpus(debug, analecCorpus, corpus, schema_ursql, minimum_schema_size, maximum_schema_size);
85
	def schemas = AnalecUtils.selectSchemasInCorpus(debug, analecCorpus, corpus, schema_ursql, minimum_schema_size, maximum_schema_size, strict_inclusion);
85 86
	schemas.sort() {it.getProps()}
86 87
	def nSchemas = 0
87 88
	

Also available in: Unified diff