Skip to content

Commit

Permalink
Minor aesthetic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmort27 committed Jul 7, 2022
1 parent b50509c commit 0107409
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions epitran/_epitran.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
import logging
import sys
from typing import Union

import panphon.featuretable
Expand Down Expand Up @@ -109,7 +108,7 @@ def xsampa_list(self, word: str, normpunc: bool=False, ligaturize: bool=False):
ligaturize))
return list(map(self.xsampa.ipa2xs, ipa_segs))

def word_to_tuples(self, word: str, normpunc: bool=False, ligaturize: bool=False):
def word_to_tuples(self, word: str, normpunc: bool=False, _ligaturize: bool=False):
"""Given a word, returns a list of tuples corresponding to IPA segments. The "feature
vectors" form a list consisting of (segment, vector) pairs.
For IPA segments, segment is a substring of phonetic_form such that the
Expand All @@ -127,4 +126,4 @@ def word_to_tuples(self, word: str, normpunc: bool=False, ligaturize: bool=False
try:
return self.epi.word_to_tuples(word, normpunc)
except AttributeError:
raise AttributeError('Method word_to_tuples not yet implemented for this language-script pair!')
raise AttributeError('Method word_to_tuples not yet implemented for this language-script pair!') from AttributeError

0 comments on commit 0107409

Please sign in to comment.