frhyme

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

commit 42595a7ec17cb7fcaca6899aceefa415eb39c994
parent 418cde605745da91eb828f85db9706d033977017
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Tue, 13 Mar 2012 12:34:42 +0100

fix buildtrie to strip lines

Diffstat:
buildtrie.py | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/buildtrie.py b/buildtrie.py @@ -34,9 +34,7 @@ while True: line = sys.stdin.readline() if not line: break - line = line.split('\t') - #print(word) - #print(value) + line = line.strip().split('\t') # a trailing space is used to mark termination of the word # this is useful in cases where a prefix of a word is a complete, # different word with a different value