diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-08 20:01:41 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-08 20:53:11 +0200 |
| commit | 12a73debc9366aff44e32d119234cd8898205991 (patch) | |
| tree | 1f2b82aecfa2c289196d10377092ab4743a52257 /client/g2p.py | |
| parent | d8e79ba4db37e4fcd1fdddb5e5554a762f97ed71 (diff) | |
| download | jasper-client-12a73debc9366aff44e32d119234cd8898205991.tar.gz jasper-client-12a73debc9366aff44e32d119234cd8898205991.zip | |
Use configfile from jasper config dir in g2p.py (i.e. use )
Diffstat (limited to 'client/g2p.py')
| -rw-r--r-- | client/g2p.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/g2p.py b/client/g2p.py index ec0b025..9e715c9 100644 --- a/client/g2p.py +++ b/client/g2p.py @@ -69,7 +69,7 @@ class PhonetisaurusG2P(object): conf = {'fst_model': os.path.join(jasperpath.APP_PATH, os.pardir, 'phonetisaurus', 'g014b2b.fst')} # Try to get fst_model from config - profile_path = os.path.join(os.path.dirname(__file__), 'profile.yml') + profile_path = jasperpath.config('profile.yml') if os.path.exists(profile_path): with open(profile_path, 'r') as f: profile = yaml.safe_load(f) |
