点此进入CSDN

点此添加QQ好友 加载失败时会显示




摘要: num_sequence.py """ 数字序列化方法 """ class NumSequence: """ input : intintint output :[int,int,int] """ PAD_TAG = "<PAD>" UNK_TAG = "<UNK>" SOS_TAG = "<SOS 阅读全文
posted @ 2020-02-20 21:07 高颜值的殺生丸 阅读(776) 评论(0) 推荐(0) 编辑
摘要: import os file_path = os.path.dirname(__file__) os.path.exists(test_file.txt) 阅读全文
posted @ 2020-02-20 20:53 高颜值的殺生丸 阅读(797) 评论(0) 推荐(0) 编辑
摘要: out.squeeze(dim=1) out.squeeze_(dim=1) 阅读全文
posted @ 2020-02-20 18:14 高颜值的殺生丸 阅读(1265) 评论(0) 推荐(0) 编辑
摘要: 数据格式:分词后的句子+\t__label__+标签 fasttext_model.py from fasttext import FastText import numpy as np def get_data_path(by_word=True,train=True): if by_word: 阅读全文
posted @ 2020-02-20 00:05 高颜值的殺生丸 阅读(1389) 评论(0) 推荐(0) 编辑

作者信息

昵称:

刘新宇

园龄:4年6个月


粉丝:1209


QQ:522414928