frhyme

guess the last phonemes of a French word
git clone https://a3nm.net/git/frhyme/
Log | Files | Refs | README

commit 2535d9dee49ec966612d3fca9e5691455514acc1
parent b686dd48ff2340e861aebd921be254fe1fdb7a04
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed, 10 Aug 2011 16:23:19 -0400

Added file to truncate pronunciations.

Diffstat:
truncate.sh | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/truncate.sh b/truncate.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +NUM=${1:?Usage: $0 NUM_PHONEMES} +FS="\t" awk '{ printf "%s\t%s\n", $1, substr( $2, length($2) - '$NUM' + 1) }' +