GithubHelp home page GithubHelp logo

Comments (4)

cdleong avatar cdleong commented on July 30, 2024

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.

cdleong avatar cdleong commented on July 30, 2024

Tested on Google Colab!

from epitran.

dmort27 avatar dmort27 commented on July 30, 2024

Thanks for doing this. I'll try to fix these in the next couple of days.

from epitran.

dmort27 avatar dmort27 commented on July 30, 2024

Well, it was more than a couple of days, but I finally fixed these. Thanks for your contribution!

from epitran.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.