Révision 2927
tmp/org.txm.treetagger.core/src/org/txm/importer/xmltxm/Annotate.groovy (revision 2927) | ||
---|---|---|
179 | 179 |
"http://bfm.ens-lyon.fr/IMG/pdf/Cattex2009_Manuel.pdf", |
180 | 180 |
"" |
181 | 181 |
] |
182 |
typesWEB = ["http://bfm.ens-lyon.fr/", ""] |
|
182 |
typesWEB = [ |
|
183 |
"http://bfm.ens-lyon.fr/", |
|
184 |
"" |
|
185 |
] |
|
183 | 186 |
} else { |
184 | 187 |
typesDesc = [ |
185 | 188 |
"pos tagset built from model "+modelfile, |
tmp/org.txm.annotation.core/src/org/txm/annotation/core/AnnotationEngine.java (revision 2927) | ||
---|---|---|
7 | 7 |
import org.txm.core.engines.Engine; |
8 | 8 |
import org.txm.objects.CorpusBuild; |
9 | 9 |
import org.txm.utils.ConsoleProgressBar; |
10 |
import org.txm.utils.DeleteDir; |
|
10 | 11 |
|
11 | 12 |
public abstract class AnnotationEngine implements Engine { |
12 | 13 |
|
... | ... | |
58 | 59 |
} |
59 | 60 |
boolean ret = true; |
60 | 61 |
ConsoleProgressBar cpb = new ConsoleProgressBar(files.length); |
62 |
|
|
63 |
File annotDir = new File(binaryCorpusDirectory, "annotations"); |
|
64 |
DeleteDir.deleteDirectory(annotDir); |
|
65 |
annotDir.mkdir(); |
|
66 |
File ptreetaggerDir = new File(binaryCorpusDirectory, "ptreetagger"); |
|
67 |
DeleteDir.deleteDirectory(ptreetaggerDir); |
|
68 |
ptreetaggerDir.mkdir(); |
|
69 |
File treetaggerDir = new File(binaryCorpusDirectory, "treetagger"); |
|
70 |
DeleteDir.deleteDirectory(treetaggerDir); |
|
71 |
treetaggerDir.mkdir(); |
|
72 |
|
|
61 | 73 |
for (File xmlFile : files) { |
62 | 74 |
ret = processFile(xmlFile, binaryCorpusDirectory, parameters) && ret; |
63 | 75 |
cpb.tick(); |
Formats disponibles : Unified diff