Skip to content

Commit

Permalink
Simplify dummy entity
Browse files Browse the repository at this point in the history
  • Loading branch information
rafelafrance committed Oct 3, 2024
1 parent b858fe4 commit 2877b3e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions traiter/pylib/rules/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ def from_ent(cls, ent, **kwargs):
return cls(**kwargs)

@classmethod
def dummy_ent(cls, ent, **kwargs):
kwargs["start"] = kwargs.get("start", ent.start_char)
kwargs["end"] = kwargs.get("end", ent.end_char)
kwargs["_trait"] = kwargs.get("_trait", ent.label_)
kwargs["_text"] = kwargs.get("_text", ent.text)
def dummy_ent(cls, **kwargs):
return cls(**kwargs)

def to_dict(self) -> dict:
Expand Down

0 comments on commit 2877b3e

Please sign in to comment.