Révision 2922
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/importer/xml/importer.groovy (revision 2922) | ||
---|---|---|
133 | 133 |
cpb.done() |
134 | 134 |
|
135 | 135 |
okfiles.sort() |
136 |
println "Files to process: "+okfiles |
|
137 | 136 |
if (okfiles.size() == 0) { |
138 | 137 |
println "No file. Check if the file extensions are '.xml'" |
139 | 138 |
return false |
... | ... | |
154 | 153 |
//TOKENIZE FILES |
155 | 154 |
List<File> tokenfiles; |
156 | 155 |
if (tokenize || sentence) { |
157 |
println "Tokenizing (words=$tokenize sentences=$sentence) "+okfiles.size()+" files"
|
|
156 |
println "Tokenizing "+okfiles.size()+" files" |
|
158 | 157 |
ConsoleProgressBar cpb2 = new ConsoleProgressBar(files.size()) |
159 | 158 |
for (File f : okfiles) { |
160 | 159 |
cpb2.tick() |
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/importer/xml/xmlLoader.groovy (revision 2922) | ||
---|---|---|
46 | 46 |
import javax.xml.stream.* |
47 | 47 |
import org.w3c.dom.Element |
48 | 48 |
|
49 |
|
|
50 | 49 |
String userDir = System.getProperty("user.home") |
51 | 50 |
|
52 | 51 |
def MONITOR |
... | ... | |
75 | 74 |
binDir.mkdirs() |
76 | 75 |
if (!binDir.exists()) { |
77 | 76 |
println "Could not create the result directory: "+binDir |
78 |
return;
|
|
77 |
return |
|
79 | 78 |
} |
80 | 79 |
|
81 | 80 |
File txmDir = new File(binDir, "txm/$corpusname") |
Formats disponibles : Unified diff