edinburghnlp / spice Goto Github PK
View Code? Open in Web Editor NEWSemantic Parsing for Conversational Question Answering over Large Knowledge Graphs
Home Page: https://arxiv.org/abs/2301.12217
License: BSD 3-Clause "New" or "Revised" License
Semantic Parsing for Conversational Question Answering over Large Knowledge Graphs
Home Page: https://arxiv.org/abs/2301.12217
License: BSD 3-Clause "New" or "Revised" License
Hi.
When I try to run below code in allenNLP-NER after run elastic_search server in localhost:9200
python nel.py \
-data_path "data_path/" \
-save_path "tag_data_ner" \
-file_path "trainlist.txt" \
-dataset 'train' \
-start 0 \
-end -1
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.