Giter VIP home page Giter VIP logo

Comments (7)

guotong1988 avatar guotong1988 commented on July 20, 2024

wvi_corenlp -- where value index and corenlp lib cut the sentence.

What is keyword?

from nl2sql-rule.

Bill-ai avatar Bill-ai commented on July 20, 2024

{
"table_id": "1-1000181-1",
"phase": 1,
"question": "Tell me what the notes are for South Australia ",
"question_tok": ["Tell", "me", "what", "the", "notes", "are", "for", "South", "Australia"],
"sql": {
"sel": 5,
"conds": [
[3, 0, "SOUTH AUSTRALIA"]
],
"agg": 0
},
"query": {
"sel": 5,
"conds": [
[3, 0, "SOUTH AUSTRALIA"]
],
"agg": 0
},
"wvi_corenlp": [
[7, 8]
],
"bertindex_knowledge": [0, 0, 0, 0, 4, 0, 0, 1, 3],
"header_knowledge": [2, 0, 0, 2, 0, 1]
}

In this how did you get "wvi_corenlp": [[7, 8]], 7th & 8th words are SOUTH AUSTRALIA?
How did you extract "SOUTH AUSTRALIA"?
In my terms SOUTH AUSTRALIA is the keyword here.
What I know is CoreNLP takes the question and performs tokenization, what else does core NLP do?

from nl2sql-rule.

guotong1988 avatar guotong1988 commented on July 20, 2024

By string exact match.

from nl2sql-rule.

Bill-ai avatar Bill-ai commented on July 20, 2024

Are you searching the string(SOUTH AUSTRALIA) in the database and if the string is present in the database then you are returning the position in wvi_corenlp?

I thought the corenlp is extracting the word SOUTH AUSTRALIA?

What if SOUTH AUSTRALIA is not in the DB table?

from nl2sql-rule.

guotong1988 avatar guotong1988 commented on July 20, 2024

wvi_corenlp is the index in the question string.

from nl2sql-rule.

Bill-ai avatar Bill-ai commented on July 20, 2024

How does wvi_corenlp know to pick South Australia?

from nl2sql-rule.

guotong1988 avatar guotong1988 commented on July 20, 2024

wvi_corenlp is labeled by people.

from nl2sql-rule.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.