You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found the error below for every file in trainlist.txt
Failed KGQA/SPICE/SPICE_release/train/QA_1023/QA_0.json
File KGQA/SPICE/SPICE_release/train/QA_1023/QA_42.json.tagged will be processed ...
Traceback (most recent call last):
File "KGQA/SPICE/dataset/ner/allennlp_ner/nel.py", line 69, in add_nel_file
return _add_nel_file(data_file,outfile, predictor_elmo)
File "KGQA/SPICE/dataset/ner/allennlp_ner/nel.py", line 108, in _add_nel_file
r=elasticsearch_query(query=w, res_size=5)
File "KGQA/SPICE/dataset/ner/allennlp_ner/nel.py", line 56, in elasticsearch_query
res = elastic_search.search(index='csqa_wikidata', doc_type='entities',
File "/home/anaconda3/envs/SPICE/lib/python3.9/site-packages/elasticsearch/client/utils.py", line 139, in _wrapped
return func(*args, params=params, headers=headers, **kwargs)
File "/home/anaconda3/envs/SPICE/lib/python3.9/site-packages/elasticsearch/client/__init__.py", line 1479, in search
return self.transport.perform_request(
File "/home/anaconda3/envs/SPICE/lib/python3.9/site-packages/elasticsearch/transport.py", line 345, in perform_request
status, headers_response, data = connection.perform_request(
File "/home/anaconda3/envs/SPICE/lib/python3.9/site-packages/elasticsearch/connection/http_urllib3.py", line 256, in perform_request
self._raise_error(response.status, raw_data)
File "/home/anaconda3/envs/SPICE/lib/python3.9/site-packages/elasticsearch/connection/base.py", line 287, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(
elasticsearch.exceptions.RequestError: RequestError(400, 'no handler found for uri [/csqa_wikidata/entities/_search] and method [POST]', 'no handler found for uri [/csqa_wikidata/entities/_search] and method [POST]')
Is there any additional setting I missed?
The text was updated successfully, but these errors were encountered:
Hi.
When I try to run below code in allenNLP-NER after run elastic_search server in
localhost:9200
I found the error below for every file in
trainlist.txt
Is there any additional setting I missed?
The text was updated successfully, but these errors were encountered: