INNER CODE UNIT · Python

dim_output

taishi-i/nagisa · nagisa/model.py:59

        dim_output = 4+2
        self.sp_s  = 4
        self.sp_e  = 5

        # Create weight matrices and bias vectors.
        self.dim_output = dim_output
        self.w_ws  = model.add_parameters((dim_output, dim_hidden))
        self.b_ws  = model.add_parameters(dim_output)
        self.trans = model.add_lookup_parameters((dim_output, dim_output))
        self.w_pos = model.add_parameters((size_postags, dim_hidden))
        self.b_pos = model.add_parameters(size_postags)
        self.dim_word    = dim_word
        self.dim_tag_emb = dim_tag_emb

        # Load trained parameters.
        if params:
            model.populate(params)
        self.model = model

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…