I've been trying to filter a text file, but have not been able to do so.. I've just realized the reason why I am not able to filter it is because what I thought was listed as
Word '\t' phoneme Word '\t' phoneme Word '\t' phoneme Word '\t' phoneme
is not always tab separated. Some of the entries are separated by two space, and others are separated by tab.
Is it possible to change all the spaces between word and phonemes to tab?
<oov> <oov> A AH0 A EY1 A''S EY1 Z A'BODY EY1 B AA2 D IY0 A'COURT EY1 K AO2 R T A'D EY1 D A'GHA EY1 G AH0 A'GOIN EY1 G OY1 N A'LL EY1 L A'M EY1 M A'MIGHTY EY1 M AY1 T IY0 A'MIGHTY'S EY1 M AY1 T IY0 Z A'MOST EY1 M OW2 S T A'N'T EY1 AH0 N T A'PENNY EY1 P EH2 N IY0 A'READY EY1 R IY1 D IY0 A'RIGHT EY1 R AY2 T A'RONY EY1 R OW1 N IY0 A'S EY1 Z A'TER EY1 T ER0 A'TERNOON EY1 T ER0 N UW1 N