Hi.
Sorry if this is a basic question, but I am a beginner with pynini and confused with the logic behind the TimeFst in En inverse text normalization.
In the file nemo_text_processing/inverse_text_normalization/en/taggers/time.py,
the time components are tagged into minutes and hours as required
e.g. twelve thirty -> time { hours: "12" minutes: "30" }
e.g. twelve past one -> time { minutes: "12" hours: "1" }
In the file nemo_text_processing/inverse_text_normalization/en/verbalizers/time.py,
the same tagged string are verbalized and we remain only with the time
eg. time { hours: "12" minutes: "30" } -> 12:30
I am unable to understand how the second case from tagged sentence -> 'time { minutes: "12" hours: "1" }' is handled in the code.
Is it by reversing the terms while processing or is it done during the final processing in FinalVerbFst?
Hi. Sorry if this is a basic question, but I am a beginner with pynini and confused with the logic behind the TimeFst in En inverse text normalization.
In the file nemo_text_processing/inverse_text_normalization/en/taggers/time.py, the time components are tagged into minutes and hours as required e.g. twelve thirty -> time { hours: "12" minutes: "30" } e.g. twelve past one -> time { minutes: "12" hours: "1" }
In the file nemo_text_processing/inverse_text_normalization/en/verbalizers/time.py, the same tagged string are verbalized and we remain only with the time eg. time { hours: "12" minutes: "30" } -> 12:30
I am unable to understand how the second case from tagged sentence -> 'time { minutes: "12" hours: "1" }' is handled in the code. Is it by reversing the terms while processing or is it done during the final processing in FinalVerbFst?
Would be glad if anyone could help. Thank you!