Skip to content

Commit

Permalink
made method private
Browse files Browse the repository at this point in the history
  • Loading branch information
RichJackson committed Sep 11, 2024
1 parent f5bc8a9 commit d879df3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kazu/steps/ner/gliner.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def finalise(self, namespace: str) -> None:
automaton.make_automaton()

for section in doc.sections:
self.automaton_matching(automaton, namespace, section)
self._automaton_matching(automaton, namespace, section)

def automaton_matching(
def _automaton_matching(
self, automaton: ahocorasick.Automaton, namespace: str, section: Section
) -> None:
spacy_doc = self.spacy_pipelines.process_single(section.text, BASIC_PIPELINE_NAME)
Expand Down

0 comments on commit d879df3

Please sign in to comment.