Statistics
| Revision:

root / tmp / org.txm.connlu.core / groovy / org / txm / scripts / importer / connlu / CONNLUImport.groovy @ 2129

History | View | Annotate | Download (946 Bytes)

1
package org.txm.scripts.importer.connlu;
2

    
3
import java.io.File
4
import java.util.ArrayList
5

    
6
import org.apache.log4j.BasicConfigurator;
7
import org.txm.importer.xtz.*
8
import org.txm.objects.Project
9
import org.txm.scripts.importer.xtz.*
10

    
11
import ims.tiger.index.writer.*
12
import ims.tiger.system.*
13

    
14
class CONNLUImport extends XTZImport {
15

    
16
        public CONNLUImport(Project params) {
17
                super(params);
18
        }
19

    
20
        @Override
21
        public void init(Project p) {
22
                super.init(p);
23

    
24
                importer = new CONNLUImporter(this); // select TIGER XML files then do XTZImporter step
25
                compiler = new XTZCompiler(this)
26
                annotater = null; // no annotater step to do
27
                pager = new XTZPager(this)
28
        }
29

    
30
        /**
31
         * Do a XTZ Import then build the TIGERSearch indexes in the binary corpus "tiger" directory
32
         */
33
        @Override
34
        public void start() throws InterruptedException {
35
                
36
                super.start(); // call the usual XTZ import
37
                
38
                if (isSuccessful) {
39
                        println "BUILD CONNL-UD indexes ??"
40
        
41
                }
42
        }
43
}