From 45a5480765c64d7f2fe10f166546a9c5fc117c51 Mon Sep 17 00:00:00 2001 From: wangmeng28 Date: Sat, 30 Sep 2017 23:03:11 +0800 Subject: [PATCH] Update layer name --- globally_normalized_reader/config.py | 2 +- globally_normalized_reader/model.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/globally_normalized_reader/config.py b/globally_normalized_reader/config.py index d89fd0e4..849cc693 100644 --- a/globally_normalized_reader/config.py +++ b/globally_normalized_reader/config.py @@ -5,7 +5,7 @@ __all__ = ["ModelConfig", "TrainerConfig"] class ModelConfig(object): - vocab_size = 104808 + vocab_size = 104810 embedding_dim = 300 embedding_droprate = 0.3 diff --git a/globally_normalized_reader/model.py b/globally_normalized_reader/model.py index db5cccae..e2ef2b23 100644 --- a/globally_normalized_reader/model.py +++ b/globally_normalized_reader/model.py @@ -195,7 +195,7 @@ def search_answer(doc_lstm_outs, sentence_idx, start_idx, end_idx, config, """Search the answer from the document. The search process for this layer begins with searching a target sequence - from a nested sequence by using paddle.lauer.kmax_seq_score and + from a nested sequence by using paddle.layer.kmax_seq_score and paddle.layer.sub_nested_seq_layer. In the first search step, top beam size sequences with highest scores, indices of these top k sequences in the original nested sequence, and the ground truth (also called gold) -- GitLab