Révision 2723
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/annotation/CQL2WordAnnotationsMacro.groovy (revision 2723) | ||
---|---|---|
44 | 44 |
@Field @Option(name="word_property", usage="The word_property to annotate", widget="String", required=true, def="type") |
45 | 45 |
String word_property |
46 | 46 |
|
47 |
@Field @Option(name="value", usage="the annotation value", widget="String", required=true, def="value")
|
|
48 |
String value |
|
47 |
@Field @Option(name="annotation_value", usage="the annotation value", widget="String", required=true, def="annotation_value")
|
|
48 |
String annotation_value
|
|
49 | 49 |
|
50 | 50 |
// Open the parameters input dialog box |
51 | 51 |
if (!ParametersDialog.open(this)) return |
... | ... | |
66 | 66 |
type.setEffect(AnnotationEffect.TOKEN); |
67 | 67 |
} |
68 | 68 |
|
69 |
value_to_add = kr.getValue(type, value); |
|
69 |
value_to_add = kr.getValue(type, annotation_value);
|
|
70 | 70 |
if (value_to_add == null) { // create or not the annotation is simple mode |
71 |
value_to_add = kr.addValue(value, value, type.getId());
|
|
71 |
value_to_add = kr.addValue(annotation_value, annotation_value, type.getId());
|
|
72 | 72 |
} |
73 | 73 |
|
74 | 74 |
qr = corpus.query(new CQLQuery(query), "TMP", false) |
Formats disponibles : Unified diff