# Querying NER model with a list of strings using the inference api

**URL:** <https://discuss.huggingface.co/t/querying-ner-model-with-a-list-of-strings-using-the-inference-api/13329>\
**Category:** Beginners\
**Created:** [January 3, 2022, 5:06pm UTC](https://discuss.huggingface.co/t/querying-ner-model-with-a-list-of-strings-using-the-inference-api/13329 "2022-01-03T17:06:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vsalamand](https://avatars.discourse-cdn.com/v4/letter/v/3be4f8/32.png) [@vsalamand](https://discuss.huggingface.co/u/vsalamand)\
**Post date:** [January 3, 2022, 5:06pm UTC](https://discuss.huggingface.co/t/querying-ner-model-with-a-list-of-strings-using-the-inference-api/13329/1 "2022-01-03T17:06:48Z")

</div>

Hi,  
Is there a reason why it’s not working when I query a spacy NER model with a list of inputs ?

I’m able to send multiple inputs at once with other types of model, but in this case the only way to make it work is with a single string input.  
Otherwise the api is returning this {‘error’: ['str type expected: ` __root__ ` in `parameters`']}.

Thanks !
