public class TranscriptionTableModel extends AbstractTableModel
listenerList| Constructor and Description |
|---|
TranscriptionTableModel() |
TranscriptionTableModel(String fileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
createLexicon(String lexiconFilename,
String fstFilename)
Creates lexicon in FST format and letter-to-sound models
|
void |
createPOSFst(String posFilename,
String fstFilename) |
Class |
getColumnClass(int c) |
int |
getColumnCount()
get column count
|
String |
getColumnName(int col)
get column name
|
boolean[] |
getCorrectSyntaxList() |
Object[][] |
getData() |
Object |
getDataAt(int x,
int y) |
boolean[] |
getManualVerifiedList() |
int |
getRowCount()
get row count
|
Object |
getValueAt(int row,
int col)
get value at given location
|
boolean |
hasFunctionalData() |
boolean |
hasLexiconData() |
boolean |
isCellEditable(int row,
int col) |
boolean |
isDataModified() |
void |
loadTranscription(ArrayList<String> wordList) |
void |
loadTranscription(HashMap<String,Integer> wordList)
Deprecated.
|
void |
loadTranscription(String fileName,
boolean keepCurrentData)
Load transcription from file, either replacing or adding to any existing data.
|
void |
saveFunctionalWords(String fileName)
Save all functional words into text file
|
void |
saveSampaLexiconFormat(String fileName)
Save user entered and verified transcription in to lexicon format
|
void |
saveSampaLexiconFormat(String fileName,
AllophoneSet phoneSet)
Save user entered and verified transcription in to lexicon format
|
void |
saveTranscription(String fileName)
Save transcription to a file
|
void |
setAsCorrectSyntax(int x,
boolean t) |
void |
setAsManualVerify(int x,
boolean t) |
void |
setValueAt(Object value,
int row,
int col) |
void |
testFST(String lexiconFilename,
String fstFilename)
For all words in lexicon, verify if they can be looked up in fst file.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic Object getDataAt(int x, int y)
public Object[][] getData()
public void setAsManualVerify(int x,
boolean t)
public void setAsCorrectSyntax(int x,
boolean t)
public boolean[] getManualVerifiedList()
public boolean[] getCorrectSyntaxList()
public void saveTranscription(String fileName) throws Exception
fileName - fileNameException - Exceptionpublic void loadTranscription(String fileName, boolean keepCurrentData) throws Exception
fileName - fileNamekeepCurrentData - whether to keep any current data and add, or use only the loaded data.Exception - Exception@Deprecated public void loadTranscription(HashMap<String,Integer> wordList) throws Exception
wordList - wordListException - Exceptionpublic void saveSampaLexiconFormat(String fileName) throws IOException
fileName - fileNameIOException - IOExceptionpublic void saveSampaLexiconFormat(String fileName, AllophoneSet phoneSet) throws IOException
fileName - fileNamephoneSet - phoneSetIOException - IOExceptionpublic void saveFunctionalWords(String fileName) throws IOException
fileName - fileNameIOException - IOExceptionpublic boolean hasFunctionalData()
public boolean hasLexiconData()
public void testFST(String lexiconFilename, String fstFilename) throws IOException
lexiconFilename - lexiconFilenamefstFilename - fstFilenameIOException - IOExceptionpublic void createPOSFst(String posFilename, String fstFilename) throws Exception
Exceptionpublic void createLexicon(String lexiconFilename, String fstFilename) throws Exception
lexiconFilename - lexiconFilenamefstFilename - fstFilenameException - Exceptionpublic int getColumnCount()
public int getRowCount()
public String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcol - colpublic Object getValueAt(int row, int col)
row - rowcol - colpublic Class getColumnClass(int c)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic boolean isCellEditable(int row,
int col)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic void setValueAt(Object value, int row, int col)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic boolean isDataModified()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.