Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion breds/bootstrapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class BREDS:
BREDS is a system that extracts relationships between named entities from text.
"""

def __init__(
def __init__( # noqa: PLR0917
self,
word2vec_model_path: str,
config_file: str,
Expand Down
2 changes: 1 addition & 1 deletion breds/breds_tuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class BREDSTuple: # pylint: disable=too-many-instance-attributes,too-many-argum
# http://www.ling.upenn.edu/courses/Fall_2007/ling001/penn_treebank_pos.html
filter_pos = ["JJ", "JJR", "JJS", "RB", "RBR", "RBS", "WRB"]

def __init__(
def __init__( # noqa: PLR0917
self,
ent1: str,
ent2: str,
Expand Down
2 changes: 1 addition & 1 deletion breds/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Config: # pylint: disable=too-many-instance-attributes, too-many-argument
- Initialize the Reverb object.
"""

def __init__(
def __init__( # noqa: PLR0917
self,
config_file: str | None,
word2vec_model_path: str,
Expand Down
4 changes: 2 additions & 2 deletions breds/sentence.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __eq__(self, other: object) -> bool:
class Relationship: # pylint: disable=too-many-arguments, too-many-instance-attributes
"""Relationship class to hold information about a relationship extracted from a sentence."""

def __init__(
def __init__( # noqa: PLR0917
self,
sentence: str,
before: list[tuple[str, str]],
Expand Down Expand Up @@ -95,7 +95,7 @@ def __hash__(self) -> int:
class Sentence: # pylint: disable=too-few-public-methods, too-many-locals, too-many-arguments
"""Holds information about a sentence extracted from a document."""

def __init__(
def __init__( # noqa: PLR0917
self,
sentence: str,
e1_type: str,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ select = [
"N",
"PL",
]
ignore = ["E203", "PLR0913", "PLR0912", "PLW1641", "PLR2004"]
ignore = ["E203", "PLR0913", "PLR0912", "PLR0917", "PLW1641", "PLR2004"]

[tool.ruff.lint.per-file-ignores]
"*/__init__.py" = ["F401"]
Expand Down