Giter Site home page Giter Site logo

text_classfication's Introduction

text_classfication文本分类

包含二分类、多分类以及多标签分类 单标签与多标签的区别在于损失函数的计算,以及全连接层的输出: 损失函数: 多标签:tf.nn.sigmoid_cross_entropy_with_logits(labels=self.input_y, logits=self.scores) 单标签:tf.nn.softmax_cross_entropy_with_logits(labels=self.input_y, logits=self.scores) 全连接层: 多标签:self.probabilities = tf.nn.sigmoid(self.scores) self.predictions = tf.round(self.probabilities, name="predictions") 单标签:self.pro = tf.nn.softmax(self.scores) self.predicitions = tf.argmax(self.pro, 1, name='predictions')

TextRNN and TextRNN+attention

  • data:{"text":"data", "id":1}

TextCNN 数据并行

  • data:{"text":"data", "id":1}

TextRCNN

  • data:{"text":"data", "id":1}

XGBOOST

  • data:{"text":"data", "id":1}

SVM

  • data:{"text":"data", "id":1}

TransformerXL

  • data:{"text":"data", "id":1}

BERT_TextCNN

BERT_TextRNN

text_classfication's People

Contributors

zwt0204 avatar

Stargazers

三万岁 avatar Albert avatar  avatar 0x0000 avatar  avatar

Watchers

James Cloos avatar  avatar

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.