Package nzilbb.labbcat.server.task
Class ExtractIntervalLabels
- java.lang.Object
-
- java.lang.Thread
-
- nzilbb.labbcat.server.task.Task
-
- nzilbb.labbcat.server.task.ExtractIntervalLabels
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description ExtractIntervalLabels()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
descriptiveName()
Generates a descriptive name for the processing.boolean
getCopyColumns()
Getter forcopyColumns
: Whether to pass the original columns through from the input CSV file to the output CSV file.File
getDataFile()
Getter fordataFile
: CSV data fileInteger
getEndTimeColumn()
Getter forendTimeColumn
: Column that identifies the end time of the span for which formants should be evaluated.char
getFieldDelimiter()
Getter forfieldDelimiter
: The field delimiter character for the CSV file.String
getFileName()
Getter forfileName
: Name to use as the basis for an output file nameString
getLabelDelimiter()
Getter forlabelDelimiter
: Delimiter to use between labels.List<String>
getLayerIds()
Getter forlayerIds
: IDs of layers to extract annotations for.boolean
getPartialContainmentAllowed()
Getter forpartialContainmentAllowed
: Whether the extracted annotations are allowed to begin before the start time or finish after the end time of the interval.int
getParticipantNameColumn()
Getter forparticipantNameColumn
: The index of the column that specifies the name of the speaker.int
getStartTimeColumn()
Getter forstartTimeColumn
: Column that identifies the time, or start time if an end column is specified, at which the formant should be evaluated.int
getTranscriptIdColumn()
Getter fortranscriptIdColumn
: Colum that contains the transcript_idvoid
run()
Run the task.ExtractIntervalLabels
setCopyColumns(boolean newCopyColumns)
Setter forcopyColumns
: Whether to pass the original columns through from the input CSV file to the output CSV file.ExtractIntervalLabels
setDataFile(File fNewDataFile)
Setter fordataFile
: CSV data file, which will be deleted after processing.ExtractIntervalLabels
setEndTimeColumn(Integer iNewEndTimeColumn)
Setter forendTimeColumn
: Column that identifies the end time of the span for which formants should be evaluated.ExtractIntervalLabels
setFieldDelimiter(char cNewFieldDelimiter)
Setter forfieldDelimiter
: The field delimiter character for the CSV file.ExtractIntervalLabels
setFileName(String sNewFileName)
Setter forfileName
: Name to use as the basis for an output file nameExtractIntervalLabels
setLabelDelimiter(String newLabelDelimiter)
Setter forlabelDelimiter
: Delimiter to use between labels.ExtractIntervalLabels
setLayerIds(List<String> newLayerIds)
Setter forlayerIds
: IDs of layers to extract annotations for.ExtractIntervalLabels
setPartialContainmentAllowed(boolean newPartialContainmentAllowed)
Setter forpartialContainmentAllowed
: Whether the extracted annotations are allowed to begin before the start time or finish after the end time of the interval.ExtractIntervalLabels
setParticipantNameColumn(int iNewParticipantNameColumn)
Setter forparticipantNameColumn
: The index of the column that specifies the name of the speaker.ExtractIntervalLabels
setStartTimeColumn(int iNewStartTimeColumn)
Setter forstartTimeColumn
: Column that identifies the time, or start time if aendTimeColumn
is specified, at which the formant should be evaluated.ExtractIntervalLabels
setTranscriptIdColumn(int iNewTranscriptIdColumn)
Setter fortranscriptIdColumn
: Colum that contains the transcript_id-
Methods inherited from class nzilbb.labbcat.server.task.Task
cancel, defaultThreadName, findTask, findTask, getCreationTime, getDuration, getLastException, getLastKeepAlive, getLog, getMaxLogSize, getPercentComplete, getResources, getResultTarget, getResultText, getResultUrl, getRunning, getStatus, getStore, getStoreCache, getTaskThreadGroup, getWaitToDieMilliseconds, getWho, keepAlive, release, setLastException, setLastKeepAlive, setMaxLogSize, setResources, setResultTarget, setResultText, setResultUrl, setStatus, setStore, setStoreCache, setWaitToDieMilliseconds, setWho, waitToDie, waitToDie
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Method Detail
-
getDataFile
public File getDataFile()
Getter fordataFile
: CSV data file- Returns:
- CSV data file
-
setDataFile
public ExtractIntervalLabels setDataFile(File fNewDataFile)
Setter fordataFile
: CSV data file, which will be deleted after processing.- Parameters:
fNewDataFile
- CSV data file, which will be deleted after processing.
-
getFieldDelimiter
public char getFieldDelimiter()
Getter forfieldDelimiter
: The field delimiter character for the CSV file.- Returns:
- The field delimiter character for the CSV file.
-
setFieldDelimiter
public ExtractIntervalLabels setFieldDelimiter(char cNewFieldDelimiter)
Setter forfieldDelimiter
: The field delimiter character for the CSV file.- Parameters:
cNewFieldDelimiter
- The field delimiter character for the CSV file.
-
getTranscriptIdColumn
public int getTranscriptIdColumn()
Getter fortranscriptIdColumn
: Colum that contains the transcript_id- Returns:
- Colum that contains the transcript_id
-
setTranscriptIdColumn
public ExtractIntervalLabels setTranscriptIdColumn(int iNewTranscriptIdColumn)
Setter fortranscriptIdColumn
: Colum that contains the transcript_id- Parameters:
iNewTranscriptIdColumn
- Colum that contains the transcript_id
-
getStartTimeColumn
public int getStartTimeColumn()
Getter forstartTimeColumn
: Column that identifies the time, or start time if an end column is specified, at which the formant should be evaluated.- Returns:
- Column that identifies the time, or start time if an end column is specified, at which the formant should be evaluated.
-
setStartTimeColumn
public ExtractIntervalLabels setStartTimeColumn(int iNewStartTimeColumn)
Setter forstartTimeColumn
: Column that identifies the time, or start time if aendTimeColumn
is specified, at which the formant should be evaluated.- Parameters:
iNewStartTimeColumn
- Column that identifies the time, or start time if an end column is specified, at which the formant should be evaluated.
-
getEndTimeColumn
public Integer getEndTimeColumn()
Getter forendTimeColumn
: Column that identifies the end time of the span for which formants should be evaluated. null if MarkColumn is the target time, or non-null ifstartTimeColumn
and EndTimeColumn should be used to define a mid-point at which the formants should be extracted.- Returns:
- Column that identifies the end time of the span for which formants should be
evaluated. null if
startTimeColumn
is the target time, or non-null ifstartTimeColumn
and MarkEndColum n should be used to define a mid-point at which the formants should be extracted.
-
setEndTimeColumn
public ExtractIntervalLabels setEndTimeColumn(Integer iNewEndTimeColumn)
Setter forendTimeColumn
: Column that identifies the end time of the span for which formants should be evaluated. null ifstartTimeColumn
is the target time, or non-null ifstartTimeColumn
and EndTimeColumn should be used to define a mid-point at which the formants should be extracted.- Parameters:
iNewEndTimeColumn
- Column that identifies the end time of the span for which formants should be evaluated. null ifstartTimeColumn
is the target time, or non-null ifstartTimeColumn
and EndTimeColumn should be used to define a mid-point at which the formants should be extracted.
-
getFileName
public String getFileName()
Getter forfileName
: Name to use as the basis for an output file name- Returns:
- Name to use as the basis for an output file name
-
setFileName
public ExtractIntervalLabels setFileName(String sNewFileName)
Setter forfileName
: Name to use as the basis for an output file name- Parameters:
sNewFileName
- Name to use as the basis for an output file name
-
getParticipantNameColumn
public int getParticipantNameColumn()
Getter forparticipantNameColumn
: The index of the column that specifies the name of the speaker.- Returns:
- The index of the column that specifies the name of the speaker.
-
setParticipantNameColumn
public ExtractIntervalLabels setParticipantNameColumn(int iNewParticipantNameColumn)
Setter forparticipantNameColumn
: The index of the column that specifies the name of the speaker.- Parameters:
iNewParticipantNameColumn
- The index of the column that specifies the name of the speaker.
-
getPartialContainmentAllowed
public boolean getPartialContainmentAllowed()
Getter forpartialContainmentAllowed
: Whether the extracted annotations are allowed to begin before the start time or finish after the end time of the interval.- Returns:
- Whether the extracted annotations are allowed to begin before the start time or finish after the end time of the interval.
-
setPartialContainmentAllowed
public ExtractIntervalLabels setPartialContainmentAllowed(boolean newPartialContainmentAllowed)
Setter forpartialContainmentAllowed
: Whether the extracted annotations are allowed to begin before the start time or finish after the end time of the interval.- Parameters:
newPartialContainmentAllowed
- Whether the extracted annotations are allowed to begin before the start time or finish after the end time of the interval.
-
getLabelDelimiter
public String getLabelDelimiter()
Getter forlabelDelimiter
: Delimiter to use between labels.- Returns:
- Delimiter to use between labels. The default is " ".
-
setLabelDelimiter
public ExtractIntervalLabels setLabelDelimiter(String newLabelDelimiter)
Setter forlabelDelimiter
: Delimiter to use between labels.- Parameters:
newLabelDelimiter
- Delimiter to use between labels.
-
getLayerIds
public List<String> getLayerIds()
Getter forlayerIds
: IDs of layers to extract annotations for.- Returns:
- IDs of layers to extract annotations for.
-
setLayerIds
public ExtractIntervalLabels setLayerIds(List<String> newLayerIds)
Setter forlayerIds
: IDs of layers to extract annotations for.- Parameters:
newLayerIds
- IDs of layers to extract annotations for.
-
getCopyColumns
public boolean getCopyColumns()
Getter forcopyColumns
: Whether to pass the original columns through from the input CSV file to the output CSV file.- Returns:
- Whether to pass the original columns through from the input CSV file to the output CSV file.
-
setCopyColumns
public ExtractIntervalLabels setCopyColumns(boolean newCopyColumns)
Setter forcopyColumns
: Whether to pass the original columns through from the input CSV file to the output CSV file.- Parameters:
newCopyColumns
- Whether to pass the original columns through from the input CSV file to the output CSV file.
-
descriptiveName
public String descriptiveName()
Generates a descriptive name for the processing.- Returns:
- A name that hints at the processing being done (e.g. "praat-F1-F2") if possible, or "praat" if not.
-
-