linter fix

This commit is contained in:
Eren Gölge 2021-03-11 12:35:47 +01:00
parent 0cdb100536
commit b46498ca68
3 changed files with 43 additions and 42 deletions

View File

@ -25,43 +25,42 @@ abbreviations_en = [(re.compile('\\b%s\\.' % x[0], re.IGNORECASE), x[1])
# List of (regular expression, replacement) pairs for abbreviations in french: # List of (regular expression, replacement) pairs for abbreviations in french:
abbreviations_fr = [(re.compile('\\b%s\\.' % x[0], re.IGNORECASE), x[1]) abbreviations_fr = [(re.compile('\\b%s\\.' % x[0], re.IGNORECASE), x[1])
for x in [ for x in [
('M', 'monsieur'), ('M', 'monsieur'),
('Mlle', 'mademoiselle'), ('Mlle', 'mademoiselle'),
('Mlles', 'mesdemoiselles'), ('Mlles', 'mesdemoiselles'),
('Mme', 'Madame'), ('Mme', 'Madame'),
('Mmes', 'Mesdames'), ('Mmes', 'Mesdames'),
('N.B', 'nota bene'), ('N.B', 'nota bene'),
('M', 'monsieur'), ('M', 'monsieur'),
('p.c.q', 'parce que'), ('p.c.q', 'parce que'),
('Pr', 'professeur'), ('Pr', 'professeur'),
('qqch', 'quelque chose'), ('qqch', 'quelque chose'),
('rdv', 'rendez-vous'), ('rdv', 'rendez-vous'),
('max', 'maximum'), ('max', 'maximum'),
('min', 'minimum'), ('min', 'minimum'),
('no', 'numéro'), ('no', 'numéro'),
('adr', 'adresse'), ('adr', 'adresse'),
('dr', 'docteur'), ('dr', 'docteur'),
('st', 'saint'), ('st', 'saint'),
('co', 'companie'), ('co', 'companie'),
('jr', 'junior'), ('jr', 'junior'),
('sgt', 'sergent'), ('sgt', 'sergent'),
('capt', 'capitain'), ('capt', 'capitain'),
('col', 'colonel'), ('col', 'colonel'),
('av', 'avenue'), ('av', 'avenue'),
('av. J.-C', 'avant Jésus-Christ'), ('av. J.-C', 'avant Jésus-Christ'),
('apr. J.-C', 'après Jésus-Christ'), ('apr. J.-C', 'après Jésus-Christ'),
('art', 'article'), ('art', 'article'),
('boul', 'boulevard'), ('boul', 'boulevard'),
('c.-à-d', 'cest-à-dire'), ('c.-à-d', 'cest-à-dire'),
('etc', 'et cetera'), ('etc', 'et cetera'),
('ex', 'exemple'), ('ex', 'exemple'),
('excl', 'exclusivement'), ('excl', 'exclusivement'),
('boul', 'boulevard'), ('boul', 'boulevard'),
]] + [(re.compile('\\b%s' % x[0]), x[1]) ]] + [(re.compile('\\b%s' % x[0]), x[1]) for x in [
for x in [ ('Mlle', 'mademoiselle'),
('Mlle', 'mademoiselle'), ('Mlles', 'mesdemoiselles'),
('Mlles', 'mesdemoiselles'), ('Mme', 'Madame'),
('Mme', 'Madame'), ('Mmes', 'Mesdames'),
('Mmes', 'Mesdames'), ]]
]]

View File

@ -24,4 +24,5 @@ def test_pqmf():
print(w2_.max()) print(w2_.max())
print(w2_.min()) print(w2_.min())
print(w2_.mean()) print(w2_.mean())
sf.write(os.path.join(get_tests_output_path(),'pqmf_output.wav'), w2_.flatten().detach(), sr) sf.write(os.path.join(get_tests_output_path(), 'pqmf_output.wav'),
w2_.flatten().detach(), sr)

View File

@ -25,4 +25,5 @@ def test_pqmf():
print(w2_.max()) print(w2_.max())
print(w2_.min()) print(w2_.min())
print(w2_.mean()) print(w2_.mean())
sf.write(os.path.join(get_tests_output_path(),'tf_pqmf_output.wav'), w2_.flatten(), sr) sf.write(os.path.join(get_tests_output_path(), 'tf_pqmf_output.wav'),
w2_.flatten(), sr)