1. 程式人生 > >Effective Use ofWord Order for Text Categorization with Convolutional Neural Networks(閱讀理解)

Effective Use ofWord Order for Text Categorization with Convolutional Neural Networks(閱讀理解)

一篇公開在2014年的文章,從現在的角度來看這篇文章的話,我們發現作者提出的方法很難算是主流方法,但在當時也有一定的啟發意義。這裡我們就簡單介紹一下這篇文章。

本文提出了將CNN直接應用於高維度的文字資料上,為我們提供了兩者CNN網路

Seq-CNN

As a running toy example, suppose that vocabulary V = {“don’t”, “hate”, “I”, “it”, “love” } and we associate the words with dimensions of vector in alphabetical order (as shown), and that document D=“I love it”. Then, we have a document vector:

x = [ 0 0 1 0 0 | 0 0 0 0 1 | 0 0 0 1 0 ]

這裡作者提供的最簡單的單詞編碼方式是one-hot編碼,V表示了單詞表

對於I love 和 love it進行編碼,我們可以看到,按照詞表的順序


Seq-CNN的明顯缺陷在於編碼方式上,單詞表越大,則每個單詞的編碼會越大,而且會存在很嚴重的稀疏問題

bow-CNN for text

這個也很好理解,作者利用bag-of-word技術,將n-gram編碼到同一個向量中,如圖


但是這個很顯然存在很嚴重的稀疏問題

本文作為CNN在文字分類上的探索,具有一定的啟發意義,但是確實不具備參考價值,水文一篇

相關推薦

Effective Use ofWord Order for Text Categorization with Convolutional Neural Networks閱讀理解

一篇公開在2014年的文章,從現在的角度來看這篇文章的話,我們發現作者提出的方法很難算是主流方法,但在當時也有一定的啟發意義。這裡我們就簡單介紹一下這篇文章。本文提出了將CNN直接應用於高維度的文字資料上,為我們提供了兩者CNN網路Seq-CNNAs a running to

Bag of Tricks for Image Classification with Convolutional Neural Networks

Bag of Tricks for Image Classification with Convolutional Neural Networks,李沐大神18年12月的新作,用卷積神經網路進行影象分類的一些技巧。 論文:Bag of Tricks for Image Classific

【論文閱讀】Bag of Tricks for Image Classification with Convolutional Neural Networks

Bag of Tricks for Image Classification with Convolutional Neural Networks 論文:https://arxiv.org/pdf/1812.01187.pdf 本文作者總結了模型訓練過程中可以提高準確率的方法,如題,

深度學習Tracking1——Learning to Track at 100 FPS with Deep Regression Networks程式碼理解

第一次看深度學習網路實現的工程程式碼,有很多內容和結構不理解,並且在Linux下跑網路工程程式碼沒有IDE,無法除錯,我也不知道在檢視函式的時候如何跳轉,因此看整個工程檔案十分麻煩。因此自己也是邊看邊查邊學。 下面開始解析該工程程式碼,可能存在一些偏差和錯

[CVPR2015] Is object localization for free? – Weakly-supervised learning with convolutional neural networks論文筆記

sed pooling was 技術分享 sco 評測 5.0 ict highest p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px "Helvetica Neue"; color: #323333 } p.p2

[深度學習] Image Classification影象分類之Bag of Tricks for Image Classification with Convolutional Neural Net

論文全稱:《Bag of Tricks for Image Classification with Convolutional Neural Networks》 論文地址:https://arxiv.org/pdf/1812.01187.pdf 這篇文章主要討論最近這些訓練神經網路的tric

Gentle Introduction to Models for Sequence Prediction with Recurrent Neural Networks

Tweet Share Share Google Plus Sequence prediction is a problem that involves using historical se

10 Tips for Writing Better Code 閱讀理解

存在 int 範圍 ide ready 有一個 不清晰 and app 出發點 http://www.tuicool.com/articles/A7VrE33 閱讀中文版本《編寫質優代碼的十個技巧》,對於我編碼十年的經驗,也有相同感受, 太多的坑趟過,太多的經歷走過,

深層CNN的調參經驗 | A practical theory for designing very deep convolutional neural networks

A practical theory for designing very deep convolutional neural networks 兩個前提假設: 1.對於每一個卷積層,其學習更復雜表示的能力應該被保證 2.最高層的感受野應該不大於影象範圍

論文閱讀筆記二十六:Faster R-CNN: Towards Real-Time Object Detection with Region Proposal NetworksCVPR 2016

論文源址:https://arxiv.org/abs/1506.01497 tensorflow程式碼:https://github.com/endernewton/tf-faster-rcnn 摘要       目標檢測依賴於區域proposals演算法對目標的位置進

Multi-Perspective Sentence Similarity Modeling with Convolutional Neural Networks理解以及翻譯

模型關於語句的相似度,由於變異以及長短不同表達,設計了一個這些中間,探究了輸入的多個角度運用多個卷積型別以及多種型別的pooling,類似於運用了多個相似度函式。模型包括兩個組成部分如圖: 如圖1,兩個輸入的句子由兩個並行的神經網路處理,輸出句子representati

ABCNN: Attention-Based Convolutional Neural Network for Modeling Sentence Pairs閱讀理解

在卷積前進行attention,通過attention矩陣計算出相應句對的attentionfeature map,然後連同原來的featuremap一起輸入到卷積層。主要的原來是將輸入擴充套件成雙通道,新增的新通道就是通過Attention Matrix計算出來的attention feature map

Recurrent Neural Network for Text Classification with Multi-Task Learning

引言 Pengfei Liu等人在2016年的IJCAI上發表的論文,論文提到已存在的網路都是針對單一任務進行訓練,但是這種模型都存在問題,即缺少標註資料,當然這是任何機器學習任務都面臨的問題。 為了應對資料量少,常用的方法是使用一個無監督的預訓練模型,比如詞向量,實驗中也取得了不錯

讀書筆記25:Temporal Hallucinating for Action Recognition with Few Still ImagesCVPR2018

openaccess.thecvf.com/content_cvpr_2018/papers/Wang_Temporal_Hallucinating_for_CVPR_2018_paper.pdf 摘要首先介紹背景,從靜態圖片中進行動作識別最近被深度學習方法促進,但是成功的

Convolutional Neural Networks for Beginners: Practical Guide with Python and Keras

Convolutional Neural Networks for Beginners: Practical Guide with Python and KerasAt this point, we are ready to deal with another type of neural networks,

Towards End-to-end Text Spotting with Convolutional Recurrent Neural Networks閱讀筆記

1.摘要 論文提出一種統一的網路結構模型,這種模型可以直接通過一次前向計算就可以同時實現對影象中文字定位和識別的任務。這種網路結構可以直接以end-to-end的方式訓練,訓練的時候只需要輸入影象,影象中文字的bbox,以及文字對應的標籤資訊。這種end-to-end訓練的

Mastering the game of Go with deep neural networks and tree search

深度 策略 參數初始化 技術 以及 -1 簡單 cpu 網絡 Silver, David, et al. "Mastering the game of Go with deep neural networks and tree search." Nature 529.758

Understanding Convolutional Neural Networks for NLP

n) rnn eas published previous depend tput parameter www. When we hear about Convolutional Neural Network (CNNs), we typically think of Co

論文《Chinese Poetry Generation with Recurrent Neural Network》閱讀筆記

code employ 是個 best rec AS Coding ack ase 這篇文章是論文‘Chinese Poetry Generation with Recurrent Neural Network’的閱讀筆記,這篇論文2014年發表在EMNLP。 ABSTRA

Sublime Text 3.1 編輯管理工程項目

sub add 打開 保存 pac 多個 switch 搜索框 In ------------------------------------------------------------------------------如果有什麽不明白的,加QQ群:186970878