Skip to content

Commit ce7edbb

Browse files
authored
Merge pull request jenojp#7 from jenojp/develop
Support spaCy 3.1
2 parents 15eae3e + fa2e492 commit ce7edbb

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

azure-pipelines.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ trigger:
1313
strategy:
1414
matrix:
1515
Python36Linux:
16-
imageName: 'ubuntu-16.04'
16+
imageName: 'ubuntu-18.04'
1717
python.version: '3.6'
1818
Python37Linux:
19-
imageName: 'ubuntu-16.04'
19+
imageName: 'ubuntu-18.04'
2020
python.version: '3.7'
2121
Python38Linux:
22-
imageName: 'ubuntu-16.04'
22+
imageName: 'ubuntu-18.04'
2323
python.version: '3.8'
2424
Python36Mac:
25-
imageName: 'macos-10.14'
25+
imageName: 'macos-10.15'
2626
python.version: '3.6'
2727
Python37Mac:
28-
imageName: 'macos-10.14'
28+
imageName: 'macos-10.15'
2929
python.version: '3.7'
3030
Python38Mac:
31-
imageName: 'macos-10.14'
31+
imageName: 'macos-10.15'
3232
python.version: '3.8'
3333
Python36Windows:
3434
imageName: 'vs2017-win2016'

extractacy/extract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
@Language.factory("valext")
77
class ValueExtractor:
8-
def __init__(self, nlp: Language, name:str, ent_patterns: dict):
8+
def __init__(self, nlp: Language, name: str, ent_patterns: dict):
99

1010
Span.set_extension("value_extract", default=[], force=True)
1111
self.nlp = nlp

extractacy/test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ def build_docs():
1111
"Discharge Date: 11/15/2008. Patient had temp reading of 102.6 degrees. Insurance claim sent to patient's account on file: 1112223. 12/31/2008: Payment received.",
1212
[
1313
("Discharge Date", ["11/15/2008"]),
14-
# ("11/15/2008", []),
14+
("11/15/2008", []),
1515
("temp", ["102.6 degrees"]),
1616
("102.6 degrees", []),
1717
("account", ["1112223"]),
1818
("1112223", []),
19-
# ("12/31/2008", []),
19+
("12/31/2008", []),
2020
("Payment received", ["12/31/2008"]),
2121
],
2222
)
@@ -61,6 +61,7 @@ def build_docs():
6161
"We believe 01/01/1980 is his date of birth but it could also be 01/02/1980",
6262
[
6363
("date of birth", ["01/01/1980", "01/02/1980"]),
64+
("01/02/1980",[])
6465
],
6566
)
6667
)
@@ -84,7 +85,7 @@ def build_docs():
8485
docs.append(
8586
(
8687
"Discharge date unknown. 12/12/1999 date of confirmation.",
87-
[("Discharge date", []), ("12/12/1999", [])],
88+
[("Discharge date", []), ("12/12/1999 date", [])],
8889
)
8990
)
9091

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name = 'extractacy',
6-
version = 'v1.0.0',
6+
version = 'v1.0.1',
77
url = 'https://github.com/jenojp/extractacy',
88
author = 'Jeno Pizarro',
99
author_email = '[email protected]',
@@ -24,7 +24,7 @@
2424
packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
2525
license="MIT",
2626
install_requires=[
27-
"spacy>=3.0.1,<3.1.0",
27+
"spacy>=3.0.1,<3.2.0",
2828
],
2929
tests_require=[
3030
"pytest",

0 commit comments

Comments
 (0)