Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
zehengl committed Dec 29, 2023
1 parent 6de91a4 commit 4412632
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ez_address_parser/address_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import sklearn_crfsuite

from .features import transform, load_data
from .features import load_data, transform
from .utils import tokenize


Expand Down
1 change: 1 addition & 0 deletions src/ez_address_parser/features.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from string import digits

from .constants import direction_terms, street_types, unit_designators
from .utils import tokenize

Expand Down
2 changes: 1 addition & 1 deletion src/ez_address_parser/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

def tokenize(s):
s = s.replace("#", " # ")
return [token for token in split(fr"[{puncts}\s]+", s) if token]
return [token for token in split(rf"[{puncts}\s]+", s) if token]
2 changes: 1 addition & 1 deletion tests/test_address_parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from unittest.mock import patch, Mock
from unittest.mock import Mock, patch

import pytest

Expand Down

0 comments on commit 4412632

Please sign in to comment.