Comments (11)
This is perplexing. For some reason, lex_lookup
is producing output with newlines. Can you try entering the following at the command line and reporting the output?
lex_lookup 'berkeley'
I want to rule out the possibility that this has something to do with the lex_lookup
binary on your system. It should output (b er1 k l iy0)
from epitran.
Interesting. I get a repetition:
$ lex_lookup 'berkeley'
(b er1 k l iy0)
(b er1 k l iy0)
I suppose this means somehow my lex_lookup
binary is misbehaving.
from epitran.
Indeed, your lex_lookup
is not behaving as expected. What platform and what OS version are you on?
There is an easy, if kludgy, fix for this (within Epitran): split the output of lex_lookup
on '\n'
and take the first element in the resulting list. I'll implement this and make a new release today.
from epitran.
Try the new release (0.60) and see if it fixes the problem.
from epitran.
Indeed, your
lex_lookup
is not behaving as expected. What platform and what OS version are you on?
I'm on ArchLinux, and I built flite
from the source on github. This might be some problem/change with the latest upstream... I really doubt I did anything strange, since the installation process is quite easy and streamlined.
Anyways, your quick-and-dirty fix works just fine, thank you!
from epitran.
You built flite
from the GitHub source, then? This probably explains the problem. I think Alan Black, author of flite
, may have changed the behavior of lex_lookup
since the non-release release that is recommended in the README for Epitran. I'll talk to @awbcmu and @saikrishnarallabandi to see if there are any other interface changes to the lex_lookup
interface that I should accomodate. Then perhaps I can start directing people to the GitHub source rather than the package linked from the README.
from epitran.
I just talked to @awbcmu and apparently there was a change in behavior in lex_lookup
. He said epitran
should take the first transcription, so the current behavior is right.
from epitran.
Good, glad this helped to solve something! I'd say this can be closed for good now.
from epitran.
@brisvag
Have you solved this problem? Is there a viable solution?
from epitran.
Yes. As I said in my last message, dmort's upstream fix was enough.
from epitran.
Thank you very much:)
from epitran.
Related Issues (20)
- TL;DR if you have troubles pipping epitran, try pip install marisa-trie first
- Possibility of using regex for generating geminates HOT 2
- Stress and syllables splitting HOT 1
- FileNotFoundError for code 'cmn-Latn' HOT 3
- Many Chinese words are not transcribed by cmn-Hans/cmn-Hant
- import epitran shows an error HOT 10
- Not able to pip install problem with building Edit Distance HOT 1
- Portuguese dictionary is missing entry for รตe
- Loading mapping files from other locations HOT 1
- Greek transliteration
- Issue with Nasal Vowels HOT 1
- Speeding up mapping with HuggingFace datasets HOT 4
- Portuguese digraphs
- Handing of hetronyms
- Problem with 'fra-Latn' for some words HOT 2
- Regex error HOT 1
- Extraneous unicode character in Kazakh HOT 3
- Punjabi 2 diacritic symbols separated from associated character HOT 2
- Errors when instantiating using certain codes HOT 4
- Best way to get a delimited transliteration with XSampa HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epitran.