Spacy add_alias, TypeError
Spacy add_alias, TypeError Question: MWE from spacy.kb import KnowledgeBase import spacy #kb.add_entity already called. nlp = spacy.blank("en") kb = KnowledgeBase(vocab=nlp.vocab, entity_vector_length=96) name = "test" qid = 1 # type(qid) => int kb.add_alias(alias=name.lower(), entities=[qid], probabilities=[1]) produces the error at the last line: TypeError: an integer is required A previous SO post suggested that the same error …