Giter Site home page Giter Site logo

请问p71_TextRCNN_model.py中rnn-cnn layer定义原理是什么?最后ensemble left, embedding, right to output的方式不像Bi-LSTM layer呀 about text_classification HOT 6 CLOSED

JepsonWong avatar JepsonWong commented on May 12, 2024
请问p71_TextRCNN_model.py中rnn-cnn layer定义原理是什么?最后ensemble left, embedding, right to output的方式不像Bi-LSTM layer呀

from text_classification.

Comments (6)

brightmart avatar brightmart commented on May 12, 2024

from text_classification.

fei161 avatar fei161 commented on May 12, 2024

The meaning of the paper should be two layers of lstm followed by cnn layer features, why is there no lstm and cnn in your code?

from text_classification.

JepsonWong avatar JepsonWong commented on May 12, 2024

When you get context right, you reverse the input sequences, but you don't reverse the output sequences. I think the output seqences should be reversed.
By the way, do you implement a rnn cell by yourself in your source code? So you don't use the tensorflow's api.
thanks.@brightmart

from text_classification.

JepsonWong avatar JepsonWong commented on May 12, 2024

I guess the author implement a rnn cell in his source code.

def instantiate_weights(self):

this is the rnn weights.
@fei161

from text_classification.

fei161 avatar fei161 commented on May 12, 2024

The author first makes a full connection to the context. Then concatenates the context vector concat and maximizes it. Finally connects to the full connection layer.
@JepsonWong

from text_classification.

JepsonWong avatar JepsonWong commented on May 12, 2024

yes, i know this. I just think that when we get context right, we should reverse the output sequences.
@fei161

from text_classification.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.