Package ca.phon.app.opgraph.nodes.table
Class PhoneAccuracyNode
java.lang.Object
ca.phon.opgraph.OpNode
ca.phon.app.opgraph.nodes.table.TableOpNode
ca.phon.app.opgraph.nodes.table.PhoneAccuracyNode
- All Implemented Interfaces:
ca.phon.opgraph.app.extensions.NodeSettings
,ca.phon.opgraph.dag.Vertex
,ca.phon.opgraph.extensions.Extendable
public final class PhoneAccuracyNode
extends TableOpNode
implements ca.phon.opgraph.app.extensions.NodeSettings
Accurate, Substitutions, Deletions Node (PhoneAccuracyNode)
Create a table with the aforementioned columns calculated
from the IPA Target, IPA Actual, and Alignment columns of the input table.
While optional, syllabifaction info can be provided for the IPA Target and IPA Actual
values using the Target Syllabification and Acutal Syllabification columns respectively.
A position column is also included the value of which will be a
combination of the constituent type along with the index position
of the phone within the search result. Epenthesized phones are given a position
endwing with '+' where the index is the position of the last target phone position.
For example:
Given input rows (all onset clusters):
| IPA Target | IPA Actual | Alignment |
|------------|------------|------------------|
| br | r | b->0, r->r |
| br | kr | b->k, r->r |
| br | slr | 0->s, b->l, r->r |
| br | blr | b->b, 0->l, r->r |
| br | brt | b->b, r->r, 0->t |
The table rows produced would be:
| IPA Target | Phone | Position | Count | Accurate | Substitutions | Deletions | Epenthesis |
|------------|-------|----------|-------|----------|---------------|-----------|------------|
| br | b | O1 | 5 | 2 | 2 | 1 | 0 |
| br | r | O2 | 5 | 5 | 0 | 0 | 0 |
| br | s | +O0 | 1 | 0 | 0 | 1 | 1 |
| br | l | +O1 | 1 | 0 | 0 | 1 | 1 |
| br | t | +O2 | 1 | 0 | 0 | 1 | 1 |
-
Field Summary
Fields inherited from class ca.phon.app.opgraph.nodes.table.TableOpNode
tableInput, tableOutput
Fields inherited from class ca.phon.opgraph.OpNode
CATEGORY_PROPERTY, COMPLETED_FIELD, DESCRIPTION_PROPERTY, ENABLED_FIELD, ID_PROPERTY, NAME_PROPERTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetComponent
(ca.phon.opgraph.app.GraphDocument document) boolean
boolean
boolean
boolean
void
loadSettings
(Properties properties) void
operate
(ca.phon.opgraph.OpContext context) void
setAddAccuracyColumns
(boolean addAccuracyColumns) void
setIgnoreDiacritics
(boolean ignoreDiacritics) void
setIncludeEpenthesis
(boolean includeEpenthesis) void
setOnlyOrExcept
(boolean onlyOrExcept) void
setSelectedDiacritics
(Collection<Diacritic> selectedDiacritics) Methods inherited from class ca.phon.app.opgraph.nodes.table.TableOpNode
getColumnIndex, getColumnIndices, getInputTable, setTableOutput
Methods inherited from class ca.phon.opgraph.OpNode
addNodeListener, checkCanceled, getCategory, getDefaultCategory, getDefaultDescription, getDefaultName, getDescription, getExtension, getExtensionClasses, getId, getInputFields, getInputFieldWithKey, getName, getOutputFields, getOutputFieldWithKey, isBreakpoint, isCanceled, putExtension, putField, putField, putField, putField, removeAllInputFields, removeAllOutputFields, removeField, removeField, removeNodeListener, setBreakpoint, setCanceled, setCategory, setDescription, setId, setName
-
Constructor Details
-
PhoneAccuracyNode
public PhoneAccuracyNode()
-
-
Method Details
-
operate
public void operate(ca.phon.opgraph.OpContext context) throws ca.phon.opgraph.exceptions.ProcessingException - Specified by:
operate
in classca.phon.opgraph.OpNode
- Throws:
ca.phon.opgraph.exceptions.ProcessingException
-
isIgnoreDiacritics
public boolean isIgnoreDiacritics() -
setIgnoreDiacritics
public void setIgnoreDiacritics(boolean ignoreDiacritics) -
isOnlyOrExcept
public boolean isOnlyOrExcept() -
setOnlyOrExcept
public void setOnlyOrExcept(boolean onlyOrExcept) -
getSelectedDiacritics
-
setSelectedDiacritics
-
isIncludeEpenthesis
public boolean isIncludeEpenthesis() -
setIncludeEpenthesis
public void setIncludeEpenthesis(boolean includeEpenthesis) -
isAddAccuracyColumns
public boolean isAddAccuracyColumns() -
setAddAccuracyColumns
public void setAddAccuracyColumns(boolean addAccuracyColumns) -
getComponent
- Specified by:
getComponent
in interfaceca.phon.opgraph.app.extensions.NodeSettings
-
getSettings
- Specified by:
getSettings
in interfaceca.phon.opgraph.app.extensions.NodeSettings
-
loadSettings
- Specified by:
loadSettings
in interfaceca.phon.opgraph.app.extensions.NodeSettings
-