Comments (4)
Full output:
ERROR:__main__:**************
ERROR:__main__:Error encountered with generic-Latn
ERROR:__main__:Map file is not well formed at line 29.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/epitran/simple.py", line 103, in _load_g2p_map
graph, phon = fields
ValueError: not enough values to unpack (expected 2, got 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<ipython-input-32-bf398c1e3ca9>", line 9, in <module>
epi = epitran.Epitran(valid_epitran_mapping)
File "/usr/local/lib/python3.7/dist-packages/epitran/_epitran.py", line 46, in __init__
self.epi = SimpleEpitran(code, preproc, postproc, ligatures, rev, rev_preproc, rev_postproc, tones=tones)
File "/usr/local/lib/python3.7/dist-packages/epitran/simple.py", line 43, in __init__
self.g2p = self._load_g2p_map(code, False)
File "/usr/local/lib/python3.7/dist-packages/epitran/simple.py", line 105, in _load_g2p_map
raise DatafileError('Map file is not well formed at line {}.'.format(i + 2))
epitran.exceptions.DatafileError: Map file is not well formed at line 29.
ERROR:__main__:**************
ERROR:__main__:Error encountered with tur-Latn-bab
ERROR:__main__:Line 4: "% Allophonic variants" cannot be parsed.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/epitran/rules.py", line 67, in _read_rule
a, b, X, Y = r.groups()
AttributeError: 'NoneType' object has no attribute 'groups'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<ipython-input-32-bf398c1e3ca9>", line 9, in <module>
epi = epitran.Epitran(valid_epitran_mapping)
File "/usr/local/lib/python3.7/dist-packages/epitran/_epitran.py", line 46, in __init__
self.epi = SimpleEpitran(code, preproc, postproc, ligatures, rev, rev_preproc, rev_postproc, tones=tones)
File "/usr/local/lib/python3.7/dist-packages/epitran/simple.py", line 49, in __init__
self.postprocessor = PrePostProcessor(code, 'post', False)
File "/usr/local/lib/python3.7/dist-packages/epitran/ppprocessor.py", line 29, in __init__
self.rules = self._read_rules(code, fix, rev)
File "/usr/local/lib/python3.7/dist-packages/epitran/ppprocessor.py", line 40, in _read_rules
return Rules([abs_fn])
File "/usr/local/lib/python3.7/dist-packages/epitran/rules.py", line 33, in __init__
rules = self._read_rule_file(rule_file)
File "/usr/local/lib/python3.7/dist-packages/epitran/rules.py", line 44, in _read_rule_file
rules.append(self._read_rule(i, line))
File "/usr/local/lib/python3.7/dist-packages/epitran/rules.py", line 69, in _read_rule
raise DatafileError('Line {}: "{}" cannot be parsed.'.format(i + 1, line))
epitran.exceptions.DatafileError: Line 4: "% Allophonic variants" cannot be parsed.
ERROR:__main__:**************
ERROR:__main__:Error encountered with ood-Latn-sax
ERROR:__main__:Undefined symbol: ::vowels::
Traceback (most recent call last):
File "<ipython-input-32-bf398c1e3ca9>", line 9, in <module>
epi = epitran.Epitran(valid_epitran_mapping)
File "/usr/local/lib/python3.7/dist-packages/epitran/_epitran.py", line 46, in __init__
self.epi = SimpleEpitran(code, preproc, postproc, ligatures, rev, rev_preproc, rev_postproc, tones=tones)
File "/usr/local/lib/python3.7/dist-packages/epitran/simple.py", line 48, in __init__
self.preprocessor = PrePostProcessor(code, 'pre', False)
File "/usr/local/lib/python3.7/dist-packages/epitran/ppprocessor.py", line 29, in __init__
self.rules = self._read_rules(code, fix, rev)
File "/usr/local/lib/python3.7/dist-packages/epitran/ppprocessor.py", line 40, in _read_rules
return Rules([abs_fn])
File "/usr/local/lib/python3.7/dist-packages/epitran/rules.py", line 33, in __init__
rules = self._read_rule_file(rule_file)
File "/usr/local/lib/python3.7/dist-packages/epitran/rules.py", line 44, in _read_rule_file
rules.append(self._read_rule(i, line))
File "/usr/local/lib/python3.7/dist-packages/epitran/rules.py", line 64, in _read_rule
line = self._sub_symbols(line)
File "/usr/local/lib/python3.7/dist-packages/epitran/rules.py", line 53, in _sub_symbols
raise RuleFileError('Undefined symbol: {}'.format(s))
epitran.rules.RuleFileError: Undefined symbol: ::vowels::
ERROR:__main__:**************
ERROR:__main__:Error encountered with vie-Latn-so
ERROR:__main__:b'One-to-many G2P mapping for "uo\xcc\x9b" on lines 63, 255'
Traceback (most recent call last):
File "<ipython-input-32-bf398c1e3ca9>", line 9, in <module>
epi = epitran.Epitran(valid_epitran_mapping)
File "/usr/local/lib/python3.7/dist-packages/epitran/_epitran.py", line 46, in __init__
self.epi = SimpleEpitran(code, preproc, postproc, ligatures, rev, rev_preproc, rev_postproc, tones=tones)
File "/usr/local/lib/python3.7/dist-packages/epitran/simple.py", line 43, in __init__
self.g2p = self._load_g2p_map(code, False)
File "/usr/local/lib/python3.7/dist-packages/epitran/simple.py", line 115, in _load_g2p_map
raise MappingError('One-to-many G2P mapping for "{}" on lines {}'.format(graph, ', '.join(map(str, lines))).encode('utf-8'))
epitran.exceptions.MappingError: b'One-to-many G2P mapping for "uo\xcc\x9b" on lines 63, 255'
ERROR:__main__:**************
ERROR:__main__:Error encountered with vie-Latn-ce
ERROR:__main__:b'One-to-many G2P mapping for "gi" on lines 8, 29'
Traceback (most recent call last):
File "<ipython-input-32-bf398c1e3ca9>", line 9, in <module>
epi = epitran.Epitran(valid_epitran_mapping)
File "/usr/local/lib/python3.7/dist-packages/epitran/_epitran.py", line 46, in __init__
self.epi = SimpleEpitran(code, preproc, postproc, ligatures, rev, rev_preproc, rev_postproc, tones=tones)
File "/usr/local/lib/python3.7/dist-packages/epitran/simple.py", line 43, in __init__
self.g2p = self._load_g2p_map(code, False)
File "/usr/local/lib/python3.7/dist-packages/epitran/simple.py", line 115, in _load_g2p_map
raise MappingError('One-to-many G2P mapping for "{}" on lines {}'.format(graph, ', '.join(map(str, lines))).encode('utf-8'))
epitran.exceptions.MappingError: b'One-to-many G2P mapping for "gi" on lines 8, 29'
ERROR:__main__:**************
ERROR:__main__:Error encountered with vie-Latn-no
ERROR:__main__:b'One-to-many G2P mapping for "gi" on lines 8, 29'
Traceback (most recent call last):
File "<ipython-input-32-bf398c1e3ca9>", line 9, in <module>
epi = epitran.Epitran(valid_epitran_mapping)
File "/usr/local/lib/python3.7/dist-packages/epitran/_epitran.py", line 46, in __init__
self.epi = SimpleEpitran(code, preproc, postproc, ligatures, rev, rev_preproc, rev_postproc, tones=tones)
File "/usr/local/lib/python3.7/dist-packages/epitran/simple.py", line 43, in __init__
self.g2p = self._load_g2p_map(code, False)
File "/usr/local/lib/python3.7/dist-packages/epitran/simple.py", line 115, in _load_g2p_map
raise MappingError('One-to-many G2P mapping for "{}" on lines {}'.format(graph, ', '.join(map(str, lines))).encode('utf-8'))
epitran.exceptions.MappingError: b'One-to-many G2P mapping for "gi" on lines 8, 29'
ERROR:__main__:**************
ERROR:__main__:Error encountered with kaz-Cyrl-bab
ERROR:__main__:b'One-to-many G2P mapping for "\xd1\x83" on lines 7, 30, 34, 49'
Traceback (most recent call last):
File "<ipython-input-32-bf398c1e3ca9>", line 9, in <module>
epi = epitran.Epitran(valid_epitran_mapping)
File "/usr/local/lib/python3.7/dist-packages/epitran/_epitran.py", line 46, in __init__
self.epi = SimpleEpitran(code, preproc, postproc, ligatures, rev, rev_preproc, rev_postproc, tones=tones)
File "/usr/local/lib/python3.7/dist-packages/epitran/simple.py", line 43, in __init__
self.g2p = self._load_g2p_map(code, False)
File "/usr/local/lib/python3.7/dist-packages/epitran/simple.py", line 115, in _load_g2p_map
raise MappingError('One-to-many G2P mapping for "{}" on lines {}'.format(graph, ', '.join(map(str, lines))).encode('utf-8'))
epitran.exceptions.MappingError: b'One-to-many G2P mapping for "\xd1\x83" on lines 7, 30, 34, 49'
from epitran.
Tested on Google Colab!
from epitran.
Thanks for doing this. I'll try to fix these in the next couple of days.
from epitran.
Well, it was more than a couple of days, but I finally fixed these. Thanks for your contribution!
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
- `panphon>=0.20` required but latest release it panphon 0.19.1 HOT 1
- How to judge whether the input text is "continuous single letter pronunciation" or "word pronunciation"
- Update tests
- IndexError: list index out of range HOT 2
- Reverse Transliterate looks for CSV file that doesn't exist in ~\data\map\ HOT 1
- Regex error HOT 1
- Extraneous unicode character in Kazakh HOT 3
- Punjabi 2 diacritic symbols separated from associated character HOT 2
- 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.