Révision 3512
TXM/trunk/org.txm.analec.rcp/src/org/txm/annotation/urs/commands/ImportTEIAnnotations.java (revision 3512) | ||
---|---|---|
42 | 42 |
//@Option(name="standoffAnnotations",usage="select this if the directory contains standoff annotation files", widget="Boolean", required=true, def="false") |
43 | 43 |
//boolean standoffAnnotations; |
44 | 44 |
@Option(name="resetAnnotations",usage="Remove the old annotations", widget="Boolean", required=true, def="false") |
45 |
boolean resetAnnotations; |
|
45 |
Boolean resetAnnotations; |
|
46 |
|
|
46 | 47 |
/* (non-Javadoc) |
47 | 48 |
* @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent) |
48 | 49 |
*/ |
TXM/trunk/org.txm.analec.rcp/src/org/txm/annotation/urs/commands/ExportTEICorpus.java (revision 3512) | ||
---|---|---|
34 | 34 |
File outputDirectory; |
35 | 35 |
|
36 | 36 |
@Option(name="createArchive",usage="zip the result", widget="Boolean", required=true, def="true") |
37 |
boolean createArchive;
|
|
37 |
Boolean createArchive;
|
|
38 | 38 |
|
39 | 39 |
@Option(name="copyXMLTXMFiles",usage="Copy the XML Files in the 'texts' directory", widget="Boolean", required=true, def="false") |
40 |
boolean copyXMLTXMFiles;
|
|
40 |
Boolean copyXMLTXMFiles;
|
|
41 | 41 |
|
42 | 42 |
/* (non-Javadoc) |
43 | 43 |
* @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent) |
TXM/trunk/org.txm.conllu.rcp/.classpath (revision 3512) | ||
---|---|---|
7 | 7 |
</accessrules> |
8 | 8 |
</classpathentry> |
9 | 9 |
<classpathentry kind="src" path="src"/> |
10 |
<classpathentry kind="src" path="res"/> |
|
10 | 11 |
<classpathentry kind="output" path="bin"/> |
11 | 12 |
</classpath> |
TXM/trunk/org.txm.groovy.core/src/groovy/org/txm/scripts/export/conll2009/ToCoNLL2009.groovy (revision 3512) | ||
---|---|---|
11 | 11 |
import org.txm.searchengine.cqp.corpus.* |
12 | 12 |
import org.txm.searchengine.cqp.corpus.query.CQLQuery |
13 | 13 |
|
14 |
class ToCoNLL2009 { |
|
14 |
public class ToCoNLL2009 {
|
|
15 | 15 |
|
16 | 16 |
boolean debug = true |
17 | 17 |
/** |
... | ... | |
26 | 26 |
* @param encoding the encoding of the outfile |
27 | 27 |
* @return true, if successful |
28 | 28 |
*/ |
29 |
public boolean process(File outfile, CQPCorpus corpus, StructuralUnitProperty sentenceUnit, Property word, Property lemme, Property pos, String encoding) |
|
30 |
{ |
|
29 |
public boolean process(File outfile, CQPCorpus corpus, StructuralUnitProperty sentenceUnit, Property word, Property lemme, Property pos, String encoding) {
|
|
30 |
|
|
31 | 31 |
def matches = corpus.query(new CQLQuery("<s> []+ </s>"), "TMPEXPORTCONLL", false).getMatches() |
32 | 32 |
if (debug) println matches.size() |
33 | 33 |
int npositions = 0; |
Formats disponibles : Unified diff