Skip to content

hierarchical convolutional attention networks for text classification

Notifications You must be signed in to change notification settings

yongqyu/hcan-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

hcan-pytorch

hierarchical convolutional attention networks for text classification

from models import Proto_CNN as HCAN

model = HCAN(input_dim, hidden_dim, kernel_dim,
             sent_maxlen, dropout_rate, num_emb, pretrained_weight)

if you don't have pretrained_weight, you should modify the Class Proto to pretrained_weight optional.

logtis = model(x, None)

second variable is length of x, l. However, since this variable is no longer needed, insert None.
xis index of words.

About

hierarchical convolutional attention networks for text classification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages