From fc217bc165f3f9ab668551d6de146e03cf9b7d4b Mon Sep 17 00:00:00 2001 From: David Huggins-Daines Date: Wed, 27 Mar 2024 20:06:20 +0000 Subject: [PATCH] chore: isort --- alexi/convert.py | 3 ++- alexi/label.py | 3 ++- alexi/link.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/alexi/convert.py b/alexi/convert.py index 989fe5b..392e2a7 100644 --- a/alexi/convert.py +++ b/alexi/convert.py @@ -10,7 +10,8 @@ from pdfplumber import PDF from pdfplumber.page import Page -from pdfplumber.structure import PDFStructElement, PDFStructTree, StructTreeMissing +from pdfplumber.structure import (PDFStructElement, PDFStructTree, + StructTreeMissing) from pdfplumber.utils import geometry from pdfplumber.utils.geometry import T_bbox diff --git a/alexi/label.py b/alexi/label.py index fa76895..a9027fe 100644 --- a/alexi/label.py +++ b/alexi/label.py @@ -10,7 +10,8 @@ from alexi.analyse import group_iob from alexi.convert import FIELDNAMES, Converteur -from alexi.segment import Segmenteur, T_obj, page2features, page2labels, split_pages +from alexi.segment import (Segmenteur, T_obj, page2features, page2labels, + split_pages) FEATNAMES = [name for name in FIELDNAMES if name != "sequence"] DEFAULT_MODEL = Path(__file__).parent / "models" / "crfseq.joblib.gz" diff --git a/alexi/link.py b/alexi/link.py index 85940c8..eb6c98f 100644 --- a/alexi/link.py +++ b/alexi/link.py @@ -8,7 +8,7 @@ import re from typing import Optional -from .analyse import PALIERS, Document, MILIEU, MTYPE +from .analyse import MILIEU, MTYPE, PALIERS, Document LOGGER = logging.getLogger("link")