如何将发布文件转换为pytorch张量
是否有Python软件包将发布文件转换为Pytorch张量? 通过发布文件,我是指带有以下格式的CSV文件: “ docid”,“ wordid”,count“
我也有一个词典。txt,将每个wordid与一个单词相关联。
最后,我的文本数据包括帖子文件和一个字典,我想将其与我使用Pytorch实施的深度学习模型一起使用。
Is there a python package that transforms a postings file to a pytorch tensor?
By a posting file I mean a csv file with the following format:
"docID" ,"wordID" ,"count"
I also have a dictionary.txt which associates each wordID to a word.
At the end, my text data consists of postings file and a dictionary and I want to use it with a deep learning model that I have implemented with Pytorch.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,你必须自己做。您只需将每个Elemnt转换为pytorch张量,也可以使用Pytorch数据集API。
No, you have to do it youself. You can simply convert each elemnt into a pytorch tensor or use the pytorch dataset api like this.