Skip to content

Commit 2547c7c

Browse files
committed
use pie-documents instead of pie-modules
1 parent c648243 commit 2547c7c

File tree

7 files changed

+81
-1510
lines changed

7 files changed

+81
-1510
lines changed

poetry.lock

Lines changed: 72 additions & 1502 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ dynamic = [ "classifiers" ]
1818
requires-python = ">=3.9,<4.0"
1919
dependencies = [
2020
"pie-core >=0.2.1, <0.4.0",
21+
"pie-documents >=0.1.0, <0.2.0",
2122
"torch >=1.10",
2223
"pytorch-lightning >=2, <3",
2324
"torchmetrics >1, <2",

src/pytorch_ie/annotations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# backward compatibility
2-
from pie_modules.annotations import (
2+
from pie_documents.annotations import (
33
BinaryRelation,
44
Label,
55
LabeledMultiSpan,

src/pytorch_ie/documents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# backwards compatibility
2-
from pie_modules.documents import (
2+
from pie_documents.documents import (
33
DocumentWithLabel,
44
DocumentWithMultiLabel,
55
TextBasedDocument,

src/pytorch_ie/metrics/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# backwards compatibility
2-
from pie_modules.metrics import ConfusionMatrix, F1Metric, SQuADF1
2+
from pie_documents.metrics import ConfusionMatrix, F1Metric, SQuADF1

src/pytorch_ie/metrics/statistics/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from pie_modules.metrics.statistics import (
1+
from pie_documents.metrics.statistics import (
22
DummyCollector,
33
FieldLengthCollector,
44
LabelCountCollector,

src/pytorch_ie/utils/span.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
Tuple,
1414
)
1515

16-
# backwards compatibility imports from pie_modules.utils.span
17-
from pie_modules.utils.span import have_overlap as has_overlap
18-
from pie_modules.utils.span import is_contained_in
16+
# backwards compatibility imports from pie_documents.utils.span
17+
from pie_documents.utils.span import have_overlap as has_overlap
18+
from pie_documents.utils.span import is_contained_in
1919
from transformers import PreTrainedTokenizer
2020

2121
from pytorch_ie.annotations import LabeledSpan, Span
2222

23-
# TODO: most of this should be superseded by pie_modules.utils.sequence_tagging,
23+
# TODO: most of this should be superseded by pie_documents.utils.sequence_tagging,
2424
# remove respective content
2525

2626
TypedSpan = Tuple[int, Tuple[int, int]]

0 commit comments

Comments
 (0)