update: tkk

This commit is contained in:
出蛰 2022-11-30 11:01:09 +08:00
parent 3e18986129
commit 19e39e1ddf
8 changed files with 6 additions and 6 deletions

View File

@ -17,7 +17,7 @@ Please run the following commands:
conda env create -f TKK.yaml
conda activate TKK
sh data_and_cache.sh
python nltk_download.py
python download.py
``````
Most of the experiments are done on NVIDIA Tesla A100 80G.

View File

@ -26,7 +26,7 @@
import json
import sqlite3
from nltk_download import word_tokenize
from nltk import word_tokenize
CLAUSE_KEYWORDS = ('select', 'from', 'where', 'group', 'order', 'limit', 'intersect', 'union', 'except')
JOIN_KEYWORDS = ('join', 'on', 'as')

View File

@ -4,7 +4,7 @@ import json
import sqlite3
from os import listdir, makedirs
from os.path import isfile, isdir, join, split, exists, splitext
from nltk_download import word_tokenize, tokenize
from nltk import word_tokenize, tokenize
import traceback
EXIST = {"atis", "geo", "advising", "yelp", "restaurants", "imdb", "academic"}

View File

@ -7,7 +7,7 @@ import sqlite3
import random
from os import listdir, makedirs
from collections import OrderedDict
from nltk_download import word_tokenize, tokenize
from nltk import word_tokenize, tokenize
from os.path import isfile, isdir, join, split, exists, splitext
from ..process_sql import get_sql

View File

@ -26,7 +26,7 @@
import json
import sqlite3
from nltk_download import word_tokenize
from nltk import word_tokenize
CLAUSE_KEYWORDS = (
"select",

Binary file not shown.

View File

@ -26,7 +26,7 @@
import json
import sqlite3
from nltk_download import word_tokenize
from nltk import word_tokenize
CLAUSE_KEYWORDS = (
"select",