corpus-services  1.0
de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa Class Reference
+ Inheritance diagram for de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa:
+ Collaboration diagram for de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa:

Public Member Functions

 AddCSVMetadataToComa (String corpusPath)
 
 AddCSVMetadataToComa ()
 
 AddCSVMetadataToComa (String corpusPath, String csvPath, String SpeakerOrCommunication)
 
Report check (CorpusData cd) throws SAXException, JexmaraldaException
 
Report function (CorpusData cd) throws SAXException, IOException, ParserConfigurationException, JexmaraldaException, JDOMException
 
void inputData () throws IOException, JDOMException
 
List< String[]> readData () throws FileNotFoundException, IOException
 
void insertDataIntoComa (List< String[]> allElements) throws JDOMException, IOException
 
String getXpathToTranscriptions ()
 
void process (String filename) throws JexmaraldaException, SAXException
 
void setCSVFilePath (String path)
 
void setSpeakerOrCommunication (String spOrCommInput)
 
Collection< Class<?extends CorpusData > > getIsUsableFor ()
 
String getDescription ()
 
Report function (Corpus c) throws Exception, NoSuchAlgorithmException, ClassNotFoundException, FSMException, URISyntaxException, SAXException, IOException, ParserConfigurationException, JexmaraldaException, TransformerException, XPathExpressionException, JDOMException
 
- Public Member Functions inherited from de.uni_hamburg.corpora.conversion.Converter
Report execute (CorpusData cd)
 
Report execute (Corpus c)
 
Report execute (CorpusData cd, boolean fix)
 
Report execute (Corpus c, boolean fix)
 
abstract Report function (Corpus c) throws Exception, NoSuchAlgorithmException, ClassNotFoundException, FSMException, URISyntaxException, SAXException, IOException, ParserConfigurationException, JexmaraldaException, TransformerException, XPathExpressionException, JDOMException
 
abstract Report function (CorpusData cd) throws Exception, NoSuchAlgorithmException, ClassNotFoundException, FSMException, URISyntaxException, SAXException, IOException, ParserConfigurationException, JexmaraldaException, TransformerException, XPathExpressionException, JDOMException
 
abstract Collection< Class<?extends CorpusData > > getIsUsableFor ()
 
void setIsUsableFor (Collection< Class<?extends CorpusData >> cdc)
 
String getFunction ()
 
Boolean getCanFix ()
 

Detailed Description

Author
fsnv625

this class can be used from the command line to insert data in a csv file into an existing coma file there needs to be a header with information of the information in the columns the first line has to consist of the sigle of the speaker or name of the communication the metadata should be assigned to

Definition at line 41 of file AddCSVMetadataToComa.java.

Constructor & Destructor Documentation

de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa.AddCSVMetadataToComa ( String  corpusPath)

creates a new instance of AddCSVMetadataToComa

Definition at line 52 of file AddCSVMetadataToComa.java.

de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa.AddCSVMetadataToComa ( )

Definition at line 55 of file AddCSVMetadataToComa.java.

de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa.AddCSVMetadataToComa ( String  corpusPath,
String  csvPath,
String  SpeakerOrCommunication 
)

creates a new instance of AddCSVMetadataToComa

Definition at line 61 of file AddCSVMetadataToComa.java.

Member Function Documentation

Report de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa.check ( CorpusData  cd) throws SAXException, JexmaraldaException

Default check function which calls the exceptionalCheck function so that the primal functionality of the feature can be implemented, and additionally checks for parser configuration, SAXE and IO exceptions.

Definition at line 78 of file AddCSVMetadataToComa.java.

Report de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa.function ( CorpusData  cd) throws SAXException, IOException, ParserConfigurationException, JexmaraldaException, JDOMException

The primary functionality of the class; it accepts the coma file and writes the CSV data into it.

Definition at line 96 of file AddCSVMetadataToComa.java.

Report de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa.function ( Corpus  c) throws Exception, NoSuchAlgorithmException, ClassNotFoundException, FSMException, URISyntaxException, SAXException, IOException, ParserConfigurationException, JexmaraldaException, TransformerException, XPathExpressionException, JDOMException

Definition at line 295 of file AddCSVMetadataToComa.java.

String de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa.getDescription ( )

Implements de.uni_hamburg.corpora.CorpusFunction.

Definition at line 286 of file AddCSVMetadataToComa.java.

Collection<Class<? extends CorpusData> > de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa.getIsUsableFor ( )

Default function which determines for what type of files (basic transcription, segmented transcription, coma etc.) this feature can be used.

Implements de.uni_hamburg.corpora.CorpusFunction.

Definition at line 275 of file AddCSVMetadataToComa.java.

String de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa.getXpathToTranscriptions ( )

Definition at line 243 of file AddCSVMetadataToComa.java.

void de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa.inputData ( ) throws IOException, JDOMException

gets the csv data and puts it into the coma file

Definition at line 167 of file AddCSVMetadataToComa.java.

void de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa.insertDataIntoComa ( List< String[]>  allElements) throws JDOMException, IOException

puts the data into the coma file

Definition at line 184 of file AddCSVMetadataToComa.java.

void de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa.process ( String  filename) throws JexmaraldaException, SAXException

Definition at line 249 of file AddCSVMetadataToComa.java.

List<String[]> de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa.readData ( ) throws FileNotFoundException, IOException

reads the data from the csv file

Definition at line 174 of file AddCSVMetadataToComa.java.

void de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa.setCSVFilePath ( String  path)

Definition at line 255 of file AddCSVMetadataToComa.java.

void de.uni_hamburg.corpora.conversion.AddCSVMetadataToComa.setSpeakerOrCommunication ( String  spOrCommInput)

Definition at line 260 of file AddCSVMetadataToComa.java.


The documentation for this class was generated from the following file: