Package ca.phon.stresspattern
Class StressPattern
java.lang.Object
ca.phon.stresspattern.StressPattern
-
Constructor Summary
ModifierConstructorDescriptionprotected
StressPattern
(SimpleFSA<StressMatcherType> fsa, String matcherString) Hidden constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic StressPattern
Compile a string into a StressPattern.static Range
convertSPRToPR
(List<IPAElement> phones, String stressPattern, Range range) Convert a range for a stress pattern match into a phone range.count
(List<StressMatcherType> stTypes) findRanges
(List<StressMatcherType> stTypes) boolean
findWithin
(List<StressMatcherType> stTypes) static String
getStressPattern
(List<IPAElement> allPhones) Returns the stress pattern for the given phones.boolean
matches
(List<StressMatcherType> stTypes)
-
Constructor Details
-
StressPattern
Hidden constructor.
-
-
Method Details
-
compile
Compile a string into a StressPattern.- Parameters:
matcher
-- Returns:
- StressPattern
- Throws:
ParserException
ParseException
-
matches
-
findWithin
-
count
-
findRanges
-
getStressPattern
Returns the stress pattern for the given phones.- Parameters:
phones
-- Returns:
- String
-
convertSPRToPR
Convert a range for a stress pattern match into a phone range.- Parameters:
phones
-stressPattern
-range
-- Returns:
- the converted range
-