Class Record
java.lang.Object
ca.phon.extensions.ExtendableObject
ca.phon.session.Record
- All Implemented Interfaces:
IExtendable
Record for phon
Session
s composed of a number of tiers. By
default, every record has the following tier:
- Orthography - orthography transcription of utterance in the CHAT transcription format
- IPA Target - model transcription of words in the utterance
- IPA Actual - actual transcription of words
- Segment - media segment time for record
UserTierType.Comments
instead.
Additional tiers, called user-defined tiers, may also be added to the record.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet validated value of IPA Actual tierGet IPA Actual tierGet validated value of IPA Target tierGet IPA Target tierLanguage for record (if specified).Get media segment for recordgetNotes()
Deprecated.since Phon 4.0, use 'Comments' tier insteadDeprecated.since Phon 4.0, use 'Comments' tier insteadGet orthographic transcription for record.Get orthography tierGet validated phone alignment between IPA Target and IPA ActualGet phone alignment tierGet media segment tierSpeaker for record, defaultParticipant.UNKNOWN
Tier
<?> Get the given tier (type unspecified)<T> Tier
<T> Get the given tier with the expected type.getTiersOfType
(Class<T> type) Return a list of all present tiers which have the given type.Class
<?> getTierType
(String name) Get the register type of the given tier.getTierValue
(String tierName) Get value for tier with type unspecified<T> T
getTierValue
(String tierName, Class<T> type) Get value for tier with name and type.Return a list of user-defined tiers that are present in this record.Get an unmodifiable list of all user tiersgetUuid()
Deprecated.boolean
boolean
Should we exclude this record from searches? This will be true if utterance-level annotations in the Orthography tier includevoid
Add/set the given tier to the list of user defined tiers.void
removeTier
(String name) Remove user-defined tier from recordvoid
Set validated value of IPA Actual tiervoid
Set validated value of IPA Target tiervoid
setLanguage
(Language language) void
setMediaSegment
(MediaSegment segment) Set media segment for recordvoid
Deprecated.since Phon 4.0, use 'Comments' tier insteadvoid
setOrthography
(Orthography orthography) void
setPhoneAlignment
(PhoneAlignment phoneAlignment) Set validated phone alignment between IPA Target and IPA Actualvoid
setSpeaker
(Participant participant) <T> void
setTierValue
(String name, Class<T> type, T value) Set value for tier with name and type.void
Deprecated.Methods inherited from class ca.phon.extensions.ExtendableObject
getExtension, getExtensions, putExtension, removeExtension
-
Field Details
-
RECORD_XCL_POSTCODE
- See Also:
-
-
Method Details
-
getUuid
-
setUuid
-
getSpeaker
-
setSpeaker
-
getLanguage
Language for record (if specified). Record language is written in orthography as '[- lang]' at the beginning of the utterance.- Returns:
- language or null not specified
-
setLanguage
-
getMediaSegment
-
setMediaSegment
Set media segment for record- Parameters:
segment
-
-
getSegmentTier
-
isExcludeFromSearches
public boolean isExcludeFromSearches()Should we exclude this record from searches? This will be true if utterance-level annotations in the Orthography tier include[e]
(exclude) or[* error]
(error).- Returns:
- true if record should be excluded
-
getOrthography
Get orthographic transcription for record. Utterances are written in the CHAT tanscription format.- Returns:
- utterance
-
setOrthography
-
getOrthographyTier
-
getIPATarget
-
setIPATarget
Set validated value of IPA Target tier- Parameters:
ipa
-
-
getIPATargetTier
-
getIPAActual
-
setIPAActual
Set validated value of IPA Actual tier- Parameters:
ipa
-
-
getIPAActualTier
-
getPhoneAlignment
Get validated phone alignment between IPA Target and IPA Actual- Returns:
- phone alignment
-
setPhoneAlignment
Set validated phone alignment between IPA Target and IPA Actual- Parameters:
phoneAlignment
-
-
getPhoneAlignmentTier
Get phone alignment tier- Returns:
- phone alignment tier
-
getNotes
Deprecated.since Phon 4.0, use 'Comments' tier insteadSet validated value of Notes tier- Returns:
- notes value
-
setNotes
Deprecated.since Phon 4.0, use 'Comments' tier insteadGet validated value of Notes tier- Parameters:
tierData
-
-
getNotesTier
Deprecated.since Phon 4.0, use 'Comments' tier insteadGet Notes tier- Returns:
- notes tier
-
getUserTiers
-
getTierType
-
getTier
-
getTier
-
getUserDefinedTierNames
-
getTiersOfType
-
hasTier
- Parameters:
name
-- Returns:
true
if this record contains the specified tier
-
setTierValue
-
getTierValue
-
getTierValue
-
putTier
Add/set the given tier to the list of user defined tiers.- Parameters:
tier
-
-
removeTier
-