2b707fb
yangsaisai 7 years ago
4 changed file(s) with 6 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
0 # input:
1 # your_param_name:
2 # value_type: 'int'
3 # output:
4 # your_result_name:
5 # value_type: 'int'
6
7
80 input:
91 Chinese_word:
102 value_type: "str"
113 style:
12 value_type: "[str]"
4 value_type: "str"
135 value_range: ['藏头诗', '藏字诗']
146 output:
157 Poetry:
1212
1313
1414 class WritePoem():
15 def __init__(self,args):
15 def __init__(self, args):
1616 self.args = args
1717
1818 logging.basicConfig(stream=sys.stdout,
3434 w2v_file = os.path.join(base_path, "vectors_poem.bin")
3535 self.w2v = Word2Vec(w2v_file)
3636
37 RhymeWords.read_rhyme_words(os.path.join(base_path,'rhyme_words.txt'))
37 RhymeWords.read_rhyme_words(os.path.join(base_path, 'rhyme_words.txt'))
3838
3939 if args.seed >= 0:
4040 np.random.seed(args.seed)
11 Chinese_word:
22 value_type: "str"
33 style:
4 value_type: "[str]"
4 value_type: "str"
55 value_range: ['藏头诗', '藏字诗']
66 output:
77 Poetry:
1212
1313
1414 class WritePoem():
15 def __init__(self,args):
15 def __init__(self, args):
1616 self.args = args
1717
1818 logging.basicConfig(stream=sys.stdout,
3434 w2v_file = os.path.join(base_path, "vectors_poem.bin")
3535 self.w2v = Word2Vec(w2v_file)
3636
37 RhymeWords.read_rhyme_words(os.path.join(base_path,'rhyme_words.txt'))
37 RhymeWords.read_rhyme_words(os.path.join(base_path, 'rhyme_words.txt'))
3838
3939 if args.seed >= 0:
4040 np.random.seed(args.seed)