摘要:
num_sequence.py """ 数字序列化方法 """ class NumSequence: """ input : intintint output :[int,int,int] """ PAD_TAG = "<PAD>" UNK_TAG = "<UNK>" SOS_TAG = "<SOS 阅读全文
摘要:
import os file_path = os.path.dirname(__file__) os.path.exists(test_file.txt) 阅读全文
摘要:
out.squeeze(dim=1) out.squeeze_(dim=1) 阅读全文
摘要:
数据格式:分词后的句子+\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: 阅读全文