Add sequencing, improvements to pipeline

This commit is contained in:
Brandon Thomas
2022-07-02 14:53:33 -04:00
parent 22a6986bd4
commit 57dfe576a8
13 changed files with 124 additions and 55 deletions
+4 -2
View File
@@ -21,12 +21,14 @@ class GraphemeSquence:
def __init__(self, sequence: str):
self.sequence = sequence
def parse_grapheme_and_arpabet_sequence(input_text: str) -> List[Union[ArpabetSequence, GraphemeSquence]]:
ParsedSequence = List[Union[ArpabetSequence, GraphemeSquence]]
def parse_grapheme_and_arpabet_sequence(input_text: str) -> ParsedSequence:
"""
Parse a string into a list of ArpabetSequence and GraphemeSequence so that each
subsequence can be treated independently.
"""
sequence : List[Union[ArpabetSequence, GraphemeSquence]] = []
sequence : ParsedSequence = []
# Check for curly braces and treat their contents as ARPAbet:
while len(input_text):