Skip to content

Commit 08c3f09

Browse files
add documentation
1 parent e31f8f0 commit 08c3f09

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

deep_keyphrase/copy_rnn/predict.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@ class CopyRnnPredictor(BasePredictor):
1616
def __init__(self, model_info, vocab_info, beam_size, max_target_len, max_src_length):
1717
"""
1818
19-
:param model_info: define the model information.
19+
:param model_info: input the model information.
2020
str type: model path
2121
dict type: must have `model` and `config` field,
2222
indicate the model object and config object
2323
24-
:param vocab_info:
25-
:param beam_size:
26-
:param max_target_len:
27-
:param max_src_length:
24+
:param vocab_info: input the vocab information.
25+
str type: vocab path
26+
dict type: vocab2id dict which map word to id
27+
:param beam_size: beam size
28+
:param max_target_len: max keyphrase token length
29+
:param max_src_length: max source text length
2830
"""
2931
super().__init__(model_info)
3032
if isinstance(vocab_info, str):

0 commit comments

Comments
 (0)