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

Commit b794c4a

Browse files
author
Colin Brochtrup
authored
Only append align_json if it's defined. (#110)
* Only append align_json if it's defined. * Increment README markdown numbering. * Limit version of textacy and pin spacy.
1 parent f225916 commit b794c4a

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ Please make sure you read and observe our [Code of Conduct](https://raw.githubus
165165
### Pull Request process
166166

167167
1. Fork it
168-
1. Create your feature branch (`git checkout -b feature/fooBar`)
169-
1. Commit your changes (`git commit -am 'Add some fooBar'`)
170-
1. Push to the branch (`git push origin feature/fooBar`)
171-
1. Create a new Pull Request
168+
2. Create your feature branch (`git checkout -b feature/fooBar`)
169+
3. Commit your changes (`git commit -am 'Add some fooBar'`)
170+
4. Push to the branch (`git push origin feature/fooBar`)
171+
5. Create a new Pull Request
172172

173173
_NOTE:_ Commits and pull requests to FINOS repositories will only be accepted from those contributors with an active, executed Individual Contributor License Agreement (ICLA) with FINOS OR who are covered under an existing and active Corporate Contribution License Agreement (CCLA) executed with FINOS. Commits from individuals not covered under an ICLA or CCLA will be flagged and blocked by the FINOS Clabot tool. Please note that some CCLAs require individuals/employees to be explicitly named on the CCLA.
174174

asrtoolkit/__init__.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,8 @@
1919

2020
LOGGER = logging.getLogger(__name__)
2121

22-
try:
23-
from asrtoolkit.align_json import align_json
24-
except ImportError:
25-
LOGGER.info(
26-
"Unable to import alignment utilities due to missing development package requirements"
27-
)
28-
29-
3022
__version__ = get_distribution("asrtoolkit").version
3123
__all__ = [
32-
align_json,
3324
audio_file,
3425
base,
3526
basename,
@@ -44,3 +35,13 @@
4435
time_aligned_text,
4536
wer,
4637
]
38+
39+
try:
40+
from asrtoolkit.align_json import align_json
41+
42+
__all__.append(align_json)
43+
except ImportError:
44+
# Catch attribute error to lest doctests pass
45+
LOGGER.info(
46+
"Unable to import alignment utilities due to missing development package requirements"
47+
)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def install_deps():
6565
"pytest",
6666
"spacy==2.2.0",
6767
"srsly<2.0.0,>=0.1.0",
68-
"textacy",
68+
"textacy<0.11.0",
6969
]
7070
},
7171
dependency_links=new_links,

0 commit comments

Comments
 (0)