Comments (3)
I encountered the same issue and resolved it. Record it just hope to help the newcomers.
That issue is caused by the wrong "corenlp" package. You can unisntall it by "pip uninstall corenlp" and install the right one "pip install stanford-corenlp". Official package page is here : https://pypi.org/project/stanford-corenlp/. Hope it can help.
from rat-sql.
I am facing the same issue during preprocessing. Can someone please help me?
DB connections: 100%|████████████████████████| 166/166 [00:00<00:00, 326.78it/s]
train section: 0%| | 0/8659 [00:00<?, ?it/s]
Traceback (most recent call last):
File "run.py", line 109, in
main()
File "run.py", line 73, in main
preprocess.main(preprocess_config)
File "/app/ratsql/commands/preprocess.py", line 53, in main
preprocessor.preprocess()
File "/app/ratsql/commands/preprocess.py", line 34, in preprocess
self.model_preproc.add_item(item, section, validation_info)
File "/app/ratsql/models/enc_dec.py", line 43, in add_item
self.enc_preproc.add_item(item, section, enc_info)
File "/app/ratsql/models/spider/spider_enc.py", line 168, in add_item
preprocessed = self.preprocess_item(item, validation_info)
File "/app/ratsql/models/spider/spider_enc.py", line 193, in preprocess_item
question, question_for_copying = self._tokenize_for_copying(item.text, item.orig['question'])
File "/app/ratsql/models/spider/spider_enc.py", line 239, in _tokenize_for_copying
return self.word_emb.tokenize_for_copying(unsplit)
File "/app/ratsql/resources/pretrained_embeddings.py", line 67, in tokenize_for_copying
ann = corenlp.annotate(text, self.corenlp_annotators)
File "/app/ratsql/resources/corenlp.py", line 45, in annotate
_singleton = CoreNLP()
File "/app/ratsql/resources/corenlp.py", line 20, in init
Landing page: https://stanfordnlp.github.io/CoreNLP/''')
Exception: Please install Stanford CoreNLP and put it at /app/third_party/stanford-corenlp-full-2018-10-05.
Direct URL: http://nlp.stanford.edu/software/stanford-corenlp-full-2018-10-05.zip
Landing page: https://stanfordnlp.github.io/CoreNLP/
Exception ignored in: <function CoreNLP.del at 0x7f87b0e83cb0>
Traceback (most recent call last):
File "/app/ratsql/resources/corenlp.py", line 24, in del
self.client.stop()
AttributeError: 'CoreNLP' object has no attribute 'client'
from rat-sql.
One source of the problem is that coreNLP client cannot be used in colab. Try to run the preprocess in the local machine and upload in the drive and then run the training in the colab
from rat-sql.
Related Issues (20)
- How did you generate the heatmap plots for the attentions? HOT 2
- Issue during preprocessing: 'CoreNLP' object has no attribute 'client' HOT 6
- Do you have notebook version for RATSQL ? HOT 5
- Can`t train the model with GPU on a server with RTX3090 HOT 1
- Execution accuracy
- An error in preprocess HOT 3
- preporcessing issue HOT 2
- 0% accuracy during evaluation from trained model. - GLOVE HOT 1
- Decoder vocabulary file not created/found HOT 1
- How to find the 'terminal' value in the questions HOT 1
- The process is killed every 280 steps HOT 2
- Schema Modeling HOT 3
- How to execute my own queries in BERT
- Failed to generate val.jsonl after the preprocess of BERT-version rat-sql
- Trained model
- System Requirements
- 这个模型代码,可以应用与中文的数据么
- Colab Implementation of RatSQL and SPIDER dataset HOT 1
- How to customize for other dataset?
- 如何将数据库列名与给定的query对齐
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rat-sql.