Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #27 from finos-voice/matthew/FixTests
Browse files Browse the repository at this point in the history
fix tests broken by phone number regex
  • Loading branch information
mgoldey authored Jan 3, 2019
2 parents 05f580f + b773ee9 commit 160a2c5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion asrtoolkit/clean_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def fraction_to_string(input_string):
("websites", (re.compile(r"[.](net|org|com|gov)\b"), lambda m: " dot " + m.group().lower().replace(".", ""))),
(
"phone_numbers", (
re.compile(r"\b((1|44)[ -.]?)?([\(]?([0-9]{1,}[\)]?[ -.]?){2,})[0-9]{4}\b"),
re.compile(r"\b((1|44)[ -.]?)?([\(]?([0-9]{1,}[\)]?[ -.]?){2,5})[0-9]{4}\b"),
lambda m: " ".join(digits_to_string(_) for _ in m.group() if _.isdigit())
)
),
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ termcolor>=1.1.0
tqdm>=4.27.0
webvtt-py>=0.4.2
pandas>0.20.0
xlrd>=1.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name='asrtoolkit',
version='0.1.10',
version='0.1.11',
description=
'The GreenKey ASRToolkit provides tools for automatic speech recognition (ASR) file conversion and corpora organization.',
long_description=long_description,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_xlsx_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Test xlsx extraction
"""

import hashlib, os
import os
from asrtoolkit.extract_excel_spreadsheets import proc_input_dir_to_corpus


Expand Down

0 comments on commit 160a2c5

Please sign in to comment.