songyingxin / textclassification Goto Github PK
View Code? Open in Web Editor NEWPytorch + NLP, 一份友好的项目实践仓库
License: Other
Pytorch + NLP, 一份友好的项目实践仓库
License: Other
LSTM_ATT/LSTMATT.py文件中的第42行score = torch.tanh(torch.matmul(outputs, self.W_w)),为什么用双向LSTM的output与一个参数矩阵相乘就是score?请问这里确定没有问题?如果没有问题请给解答一下这里得到score的原理,十分感谢!
/search/hadoop02/suanfa/songyingxin/data/embedding/glove/glove.840B.300d.txt
你好,这个文件可以分享一下吗?
nn.init.orthogonal_(getattr(self.rnn, f'weight_hh_l{i}')) nn.init.kaiming_normal_(getattr(self.rnn, f'weight_ih_l{i}')) nn.init.constant_(getattr(self.rnn, f'bias_hh_l{i}'), val=0) nn.init.constant_(getattr(self.rnn, f'bias_ih_l{i}'), val=0) getattr(self.rnn, f'bias_hh_l{i}').chunk(4)[1].fill_(1)
想请教下博主参数初始化这部分,这里对weight和bias的初始化是对LSTM中各个门和候选记忆细胞所有参数的初始化吗?最后一句getattr(self.rnn, f'bias_hh_l{i}').chunk(4)[1].fill_(1)
是什么意思呢?
请问这个是什么问题呢?
Traceback (most recent call last):
File "C:/Users/46743/Desktop/project/TextClassification/TextClassification-master/run_SST.py", line 17, in <module>
from Utils.utils import word_tokenize, get_device, epoch_time, classifiction_metric
File "C:\Users\46743\Desktop\project\TextClassification\TextClassification-master\Utils\utils.py", line 5, in <module>
from sklearn import metrics
File "G:\Software\Python\3.7\lib\site-packages\sklearn\__init__.py", line 80, in <module>
from .base import clone
File "G:\Software\Python\3.7\lib\site-packages\sklearn\base.py", line 21, in <module>
from .utils import _IS_32BIT
File "G:\Software\Python\3.7\lib\site-packages\sklearn\utils\__init__.py", line 20, in <module>
from scipy.sparse import issparse
File "G:\Software\Python\3.7\lib\site-packages\scipy\__init__.py", line 104, in <module>
from . import _distributor_init
File "G:\Software\Python\3.7\lib\site-packages\scipy\_distributor_init.py", line 61, in <module>
WinDLL(os.path.abspath(filename))
File "G:\Software\Python\3.7\lib\ctypes\__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。
Process finished with exit code 1
你好:请问
1.Decoder是还没有使用吗,因此masking也不能使用?
2. 如果使用masking,那输入masking的size是[batch_size, seq_max_length]吗?
谢谢!
你好,
train, dev, test = data.TabularDataset.splits(
path=path, train='train.jsonl', validation='dev.jsonl',
test='test.jsonl', format='json', skip_header=True,
fields=fields)
这段代码中涉及的train.jsonl,dev.jsonl和test.jsonl可以分享一下吗?网上找了好久没有找到。
9个文本分类baseline基线模型,无报错运行songyingxin/TextClassification
https://van-der-poel.blog.csdn.net/article/details/129550629
你好,大佬,请问有没有用tensorflow2实现的TextCNNHighway?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.