configuration error in Coreference resolution library

Viewed 65

dear friends i would like to use crosslingual_coreference library in order to analyze text, i have installed all necessary librayr and run following code :

import spacy
import crosslingual_coreference
DEVICE = -1 # Number of the GPU, -1 if want to use CPU
# Add coreference resolution model
coref = spacy.load('en_core_web_sm', disable=['ner', 'tagger', 'parser', 'attribute_ruler', 'lemmatizer'])
coref.add_pipe(
    "xx_coref", config={"chunk_size": 2500, "chunk_overlap": 2, "device": DEVICE})
input_text = "Christian Drosten works in Germany. He likes to work for Google."
print(coref(input_text)._.resolved_text)

but i got following error :

 raise ConfigValidationError(
thinc.config.ConfigValidationError: 

Config validation error

xx_coref -> chunk_overlap   extra fields not permitted
xx_coref -> chunk_size      extra fields not permitted

{'nlp': <spacy.lang.en.English object at 0x0000025F34C6B1C0>, 'name': 'xx_coref', 'chunk_overlap': 2, 'chunk_size': 2500, 'device': -1, 'model_name': 'info_xlm', '@factories': 'xx_coref'}

what does this error represent?please help me

0 Answers
Related