7 package de.uni_hamburg.corpora.visualization;
11 import java.util.logging.Level;
12 import java.util.logging.Logger;
13 import javax.xml.
transform.TransformerConfigurationException;
14 import javax.xml.transform.TransformerException;
15 import org.exmaralda.partitureditor.fsm.FSMException;
16 import org.exmaralda.partitureditor.jexmaralda.BasicTranscription;
17 import org.exmaralda.partitureditor.jexmaralda.JexmaraldaException;
18 import org.exmaralda.partitureditor.jexmaralda.ListTranscription;
19 import org.exmaralda.partitureditor.jexmaralda.segment.GATSegmentation;
20 import org.xml.sax.SAXException;
28 private static final String segmentationAlgorithm =
"GAT";
31 static final String STYLESHEET_PATH =
"/xsl/GAT2ListHTML.xsl";
32 private static final String SERVICE_NAME =
"GATListHTML";
36 super(btAsString,
"GAT");
37 createFromBasicTranscription(btAsString);
47 private void createFromBasicTranscription(String btAsString){
59 GATSegmentation segmenter =
new org.exmaralda.partitureditor.jexmaralda.segment.GATSegmentation(
"");
61 lt = segmenter.BasicToIntonationUnitList(bt);
72 }
catch (FSMException ex) {
73 Logger.getLogger(
GATListHTML.class.getName()).log(Level.SEVERE, null, ex);
74 }
catch (SAXException ex) {
75 Logger.getLogger(
GATListHTML.class.getName()).log(Level.SEVERE, null, ex);
76 }
catch (JexmaraldaException ex) {
77 Logger.getLogger(
GATListHTML.class.getName()).log(Level.SEVERE, null, ex);
78 }
catch (TransformerConfigurationException ex) {
79 Logger.getLogger(
GATListHTML.class.getName()).log(Level.SEVERE, null, ex);
80 }
catch (TransformerException ex) {
81 Logger.getLogger(
GATListHTML.class.getName()).log(Level.SEVERE, null, ex);
String basicTranscriptionString
static BasicTranscription String2BasicTranscription(String btAsString)
static String InputStream2String(InputStream is)
GATListHTML(String btAsString)
BasicTranscription basicTranscription
static String JdomDocument2String(org.jdom.Document jdomDocument)