diff --git a/concise_concepts/conceptualizer/Conceptualizer.py b/concise_concepts/conceptualizer/Conceptualizer.py index 36ed37e..71d5cab 100644 --- a/concise_concepts/conceptualizer/Conceptualizer.py +++ b/concise_concepts/conceptualizer/Conceptualizer.py @@ -4,6 +4,7 @@ import re from copy import deepcopy from pathlib import Path +from typing import List import gensim.downloader from gensim.models import FastText, Word2Vec @@ -484,7 +485,7 @@ def set_concept_dict(self): concept.append(present_word) self.concept_data[ent_label] = concept - def _split_word(self, word: str) -> list[str]: + def _split_word(self, word: str) -> List[str]: """ It splits a word into a list of subwords, using the word delimiter diff --git a/pyproject.toml b/pyproject.toml index 7a6515b..fceed1c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "concise-concepts" -version = "0.7.1" +version = "0.7.2" description = "This repository contains an easy and intuitive approach to few-shot NER using most similar expansion over spaCy embeddings. Now with entity confidence scores!" authors = ["David Berenstein "] license = "MIT"