Skip to content

Commit

Permalink
added typing from list to List
Browse files Browse the repository at this point in the history
  • Loading branch information
davidberenstein1957 committed Dec 4, 2022
1 parent a39df73 commit a760c99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion concise_concepts/conceptualizer/Conceptualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <david.m.berenstein@gmail.com>"]
license = "MIT"
Expand Down

0 comments on commit a760c99

Please sign in to comment.