Skip to content

Commit

Permalink
Fix bugs using pylint.See #61
Browse files Browse the repository at this point in the history
  • Loading branch information
masciotta02 committed Oct 3, 2024
1 parent 4374e1c commit ef5f68d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions esco/ner.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
ESCO Skill Recognition Module
Provides NLP-based recognition of ESCO skills in text using spaCy and an ESCO database.
Main component is the Ner class, a spaCy-aware ESCO skill recognizer.
"""

import logging
from typing import Collection

Expand All @@ -12,13 +19,14 @@ class Ner:
"""
This is a spacy-aware esco skill recognizer.
It uses a spacy model to recognize entities in a text, and then it uses the esco database to infer skills from the entities.
It uses a spacy model to recognize entities in a text,
and then it uses the esco database to infer skills from the entities.
"""

def __init__(
self,
db,
model_name_or_path: str = "en_core_web_trf_esco_ner",
model_name_or_path: str = "en_core_web_trf",
labels: tuple = ("ESCO", "PRODUCT", "LANGUAGE", "LAW"),
tokenizer=None,
):
Expand Down

0 comments on commit ef5f68d

Please sign in to comment.