SYMBOL INDEX (125 symbols across 24 files) FILE: cluster.py function get_cluster_labels (line 13) | def get_cluster_labels(texts, tokenizer, n_clusters): function _eval_cluster (line 25) | def _eval_cluster(texts, tokenizer, n_clusters): FILE: cnt_words.py function _gen_word_cnts (line 15) | def _gen_word_cnts(): function get_word_cnts (line 29) | def get_word_cnts(): function _min_word_cnt (line 35) | def _min_word_cnt(cnts, poem, segmenter): function get_pop_quatrains (line 44) | def get_pop_quatrains(num = 100000): FILE: corpus.py function _parse_corpus (line 17) | def _parse_corpus(raw_file, json_file): function get_all_corpus (line 58) | def get_all_corpus(): FILE: data_utils.py function fill_np_matrix (line 22) | def fill_np_matrix(vects, batch_size, value): function fill_np_array (line 30) | def fill_np_array(vect, batch_size, value): function _gen_train_data (line 36) | def _gen_train_data(): function _gen_cangtou_train_data (line 74) | def _gen_cangtou_train_data(): function get_train_data (line 86) | def get_train_data(cangtou=False): function get_kw_train_data (line 103) | def get_kw_train_data(): function batch_train_data (line 115) | def batch_train_data(batch_size): function process_sentence (line 160) | def process_sentence(sentence, rev=False, pad_len=None, pad_token=PAD_TO... function prepare_batch_predict_data (line 174) | def prepare_batch_predict_data(keyword, previous=[], prev=True, rev=Fals... function gen_batch_train_data (line 193) | def gen_batch_train_data(batch_size, prev=True, rev=False, align=False, ... function main (line 257) | def main(): FILE: evaluate.py function eval_poems (line 14) | def eval_poems(evaluator, poems): function eval_train_data (line 27) | def eval_train_data(): function eval_generated_data (line 37) | def eval_generated_data(num=100): function main (line 55) | def main(): FILE: generate_samples.py function sample_poems (line 17) | def sample_poems(poems, num=4000): function generate_human_samples (line 22) | def generate_human_samples(sampled_poems): function generate_rnn_samples (line 31) | def generate_rnn_samples(sampled_poems): function load_samples (line 48) | def load_samples(file_path): function load_human_samples (line 56) | def load_human_samples(): function load_rnn_samples (line 60) | def load_rnn_samples(): function main (line 64) | def main(): FILE: main.py function get_cangtou_keywords (line 14) | def get_cangtou_keywords(input): function main (line 18) | def main(cangtou=False): FILE: model.py class Seq2SeqModel (line 16) | class Seq2SeqModel: method __init__ (line 20) | def __init__(self, config, mode): method build_model (line 72) | def build_model(self): method init_placeholders (line 83) | def init_placeholders(self): method build_single_cell (line 156) | def build_single_cell(self, hidden_units): method build_encoder_cell (line 167) | def build_encoder_cell(self): method build_encoder (line 172) | def build_encoder(self): method build_decoder_cell (line 222) | def build_decoder_cell(self): method build_train_decoder (line 279) | def build_train_decoder(self): method build_predict_decoder (line 351) | def build_predict_decoder(self): method build_decoder (line 397) | def build_decoder(self): method init_optimizer (line 413) | def init_optimizer(self): method save (line 436) | def save(self, sess, saver, path, global_step=None): method restore (line 451) | def restore(self, sess, saver, path): method train (line 465) | def train(self, sess, encoder_inputs, encoder_inputs_length, method predict (line 503) | def predict(self, sess, encoder_inputs, encoder_inputs_length): method init_vars (line 518) | def init_vars(self, sess, embedding): method check_feeds (line 523) | def check_feeds(self, encoder_inputs, encoder_inputs_length, FILE: plan.py class Planner (line 20) | class Planner: method __init__ (line 22) | def __init__(self): method _train (line 29) | def _train(self): method expand (line 46) | def expand(self, words, num): method plan (line 66) | def plan(self, text): FILE: predict.py function unicode_to_utf8 (line 39) | def unicode_to_utf8(d): function load_config (line 43) | def load_config(FLAGS): function load_model (line 67) | def load_model(session, model, saver): class Seq2SeqPredictor (line 77) | class Seq2SeqPredictor: method __init__ (line 78) | def __init__(self): method __enter__ (line 100) | def __enter__(self): method __exit__ (line 103) | def __exit__(self, exc_type, exc_val, exc_tb): method predict (line 106) | def predict(self, keywords): function main (line 133) | def main(_): FILE: quatrains.py function is_quatrain (line 9) | def is_quatrain(poem): function get_quatrains (line 20) | def get_quatrains(): FILE: rank_words.py function get_stopwords (line 19) | def get_stopwords(): function _text_rank (line 29) | def _text_rank(adjlist): function _rank_all_words (line 65) | def _rank_all_words(): function get_word_ranks (line 95) | def get_word_ranks(): FILE: refine.py function print_unicode_list (line 13) | def print_unicode_list(lst): function experiment1 (line 17) | def experiment1(): function refine (line 32) | def refine(ch_rhyme, ch, alignment=False, topn=50): FILE: rhyme.py class RhymeUtil (line 179) | class RhymeUtil: method get_rhyme_category (line 180) | def get_rhyme_category(self, vowel): method has_char (line 217) | def has_char(self, ch): method get_possible_tones (line 228) | def get_possible_tones(self, ch): method get_possible_vowels (line 250) | def get_possible_vowels(self, ch): method get_possible_tone_types (line 261) | def get_possible_tone_types(self, ch): method get_possible_rhyme_categories (line 283) | def get_possible_rhyme_categories(self, ch): method can_rhyme (line 297) | def can_rhyme(self, ch_list): class RhymeEvaluator (line 313) | class RhymeEvaluator: method __init__ (line 315) | def __init__(self): method score_tone (line 318) | def score_tone(self, rule, sentences): method score_rhyme (line 335) | def score_rhyme(self, rule, sentences): method score (line 343) | def score(self, rule, sentences, split=0.5, output_split=False): method eval (line 358) | def eval(self, sentences, output_all_scores=False, output_split=False): FILE: segment.py function _gen_sxhy_dict (line 15) | def _gen_sxhy_dict(): function get_sxhy_dict (line 40) | def get_sxhy_dict(): class Segmenter (line 50) | class Segmenter: method __init__ (line 52) | def __init__(self): method segment (line 61) | def segment(self, sentence): FILE: train.py function load_or_create_model (line 71) | def load_or_create_model(sess, model, saver, FLAGS): function train (line 83) | def train(): function main (line 185) | def main(_): FILE: utils.py function embed_w2v (line 24) | def embed_w2v(embedding, data_set): function apply_one_hot (line 29) | def apply_one_hot(data_set): function apply_sparse (line 34) | def apply_sparse(data_set): function pad_to (line 39) | def pad_to(lst, length, value): function uprint (line 46) | def uprint(x): function uprintln (line 50) | def uprintln(x): function is_CN_char (line 54) | def is_CN_char(ch): function split_sentences (line 58) | def split_sentences(line): FILE: vocab.py function _gen_vocab (line 15) | def _gen_vocab(): function get_vocab (line 31) | def get_vocab(): function int_to_ch (line 45) | def int_to_ch(i): function ch_to_int (line 49) | def ch_to_int(ch): function sentence_to_ints (line 53) | def sentence_to_ints(sentence): function ints_to_sentence (line 57) | def ints_to_sentence(ints): function main (line 61) | def main(): FILE: webapp/db.js function getPoemCount (line 21) | function getPoemCount(type) { function getRandomPoem (line 28) | function getRandomPoem(type) { function getPoem (line 40) | function getPoem(type) { function generateTrial (line 57) | function generateTrial() { function randomChoice (line 65) | function randomChoice(choices) { function tallyResults (line 70) | function tallyResults() { function createRecord (line 154) | function createRecord(guess) { function isGuessCorrect (line 165) | function isGuessCorrect(guess) { FILE: webapp/pick_selection.py function pick (line 7) | def pick(rel_path="human.txt"): FILE: webapp/public/chartAjax.js function getTotals (line 125) | function getTotals() { FILE: webapp/public/formAjax.js function updateCounter (line 28) | function updateCounter(isCorrect) { function updatePoems (line 40) | function updatePoems(){ FILE: webapp/samples/generate_json.py function main (line 27) | def main(): FILE: word2vec.py function _gen_embedding (line 17) | def _gen_embedding(ndim, alignment=False): function get_word_embedding (line 49) | def get_word_embedding(ndim, alignment=False):