corpus-services  1.0
StupidCorpusMagicianTester.java
Go to the documentation of this file.
1 /*
2  * To change this license header, choose License Headers in Project Properties.
3  * To change this template file, choose Tools | Templates
4  * and open the template in the editor.
5  */
6 package de.uni_hamburg.corpora;
7 
8 import javax.xml.parsers.ParserConfigurationException;
9 import javax.xml.transform.TransformerException;
10 
16 
17 
18  String[] args ={"test", "test2"};
19 
20  public static void main(String[] args) throws ParserConfigurationException, TransformerException {
21  //one args needs to be the URL
22  //URL url = new URL("file:///E:\\Anne\\DolganCorpus\\conv\\AkNN_KuNS_200212_LifeHandicraft_conv\\AkNN_KuNS_200212_LifeHandicraft_conv.exb");
23  CorpusMagician corpuma = new CorpusMagician();
24  //Main main = new Main();
25  args = new String[5];
26  //args[0] = "-l";
27  //args[1]= "512";
28  //args[1] = "--pattern 2";
29  //args[0] = "-iE:\\Anne\\NganasanCorpus";
30  args[0] = "-i";
31  args[1] = "/data/Corpora/published/selkup/selkup.coma";
32  //args[1] = "/home/fsnv625/Documents/Corpora_OLD/GitLab/dolgan/dolgan.coma";
33  args[2] = "-o";
34  args[3] = "/home/fsnv625/Desktop/report-output.html";
35  //args[2] = "-cxsltcheckerinel";
36  //args[2] = "-cComaNSLinksChecker";
37  //args[2] = "-cExbStructureChecker";
38  //args[2] = "-cExbSegmentationChecker";
39  //args[2] = "-cExbTierDisplayNameChecker";
40  //args[4] = "-cComaOverviewGeneration";
41  //args[4] = "-cComaTierOverviewCreator";
42  //args[4] = "-cRemoveUnlinkedFiles";
43  //args[5] = "-ccomaapostrophechecker";
44  //args[4] = "-cReportStatistics";
45  //args[3] = "-cComaTranscriptionsNameChecker";
46  //args[3] = "-cExbRefTierChecker";
47  //args[4] = "-cexb2hiatisotei";
48  //args[2] = "-cComaSegmentCountChecker";
49  //args[2] = "-cexb2inelisotei";
50  //args[4] = "-cListHTML";
51  //args[4] = "-cScoreHTML";
52  //args[4] = "-cXSLTChecker";
53  args[4] = "-cVikusViewer";
54  //args[4] = "-cLanguageToolChecker";
55  //args[4] = "-cRemoveAbsolutePaths";
56  //args[2] = "-cExbTierDisplayNameChecker";
57  //args[5] = "-s/data/Corpora/KamasCorpus/corpus-utilities/settings.param";
58  //args[2] = "-czipcorpus";
59  //args[4] = "-ccmdichecker";
60  //args[2] = "-pSOURCE_FOLDER=/data/HZSK/Korpora/HZSK/SelkupCorpus/1.0";
61  //args[2] = "-pOUTPUT_ZIP_FILE=/data/HZSK/Korpora/HZSK/SelkupCorpus/1.0/resources/selkup.zip";
62  //args[2] = "-pAUDIO=false";
63  //args[3] = "-cTierCheckerWithAnnotation";
64  //args[0] = "E:\\Anne\\NganasanCorpus_HZSK_master\\NSLC_SubCorp.coma";
65  //args[1] = "-verbose";
66  //args [3] = "-plang=dlg";
67  //args [5] = "-pspelllang=en";
68  //args [6] = "-ptier=fe";
69  //args [3] = "-pmode=inel";
70  //args [4] = "-pmode=token";
71  //args [5] = "-psegmentation=GAT";
72  //args [6] = "-pcorpusname=wd";
73  //args [5] = "-pfsm=/data/Corpora/KamasCorpus/corpus-utilities/segmentation.fsm";
74  //args [4] = "-h";
75  //args [6] = "-j";
76  //args [7] = "-f";
77  corpuma.main(args);
78  //main.main(args);
79  //ComaNSLinksChecker cnslc = new ComaNSLinksChecker();
80  //cnslc.main(args);
81  //corpuma.initCorpusWithURL(url);
82  //CorpusData cd = new BasicTranscriptionData();
83  //File f = new File(url.getFile());
84  //BasicTranscriptionData cdb;
85  //cdb = (BasicTranscriptionData) cd;
86  //cdb.loadFile(f);
87  //System.out.println(url);
88  //System.out.println(corpuma.getCorpus().toString());
89  //CorpusFunction cf = new PrettyPrintData();
90  //corpuma.runChosencorpusfunctions();
91  //cd = (CorpusData) cdb;
92  //System.out.println(corpuma.runCorpusFunctqion(cd, cf, true).getFullReports());
93 
94  //one args needs to be a string for the wanted corpus function
95  //how do we align/code the checks with strings?
96  //CorpusFunction cf = new Checker(args[1]);
97  //corpuma.runCorpusFunction(corpus, cf);
98  }
99 }