2021年4月7日

pytorch基础

摘要: pytorch基础 from __future__ import print_function import torch # #基础知识 #定义张量 #常数初始化 #torch.long, float, double, float64, x = torch.tensor([5.5, 3]) torc 阅读全文

posted @ 2021-04-07 17:34 iUpoint 阅读(47) 评论(0) 推荐(0) 编辑

pd.read_excel 读取大文件

摘要: 批量读取 import os import pandas as pd HERE = os.path.abspath(os.path.dirname(__file__)) DATA_DIR = os.path.abspath(os.path.join(HERE, '..', 'data')) def 阅读全文

posted @ 2021-04-07 17:33 iUpoint 阅读(1433) 评论(0) 推荐(0) 编辑

基于统计的机器翻译

摘要: 1. 中英文平行语料预处理中文处理数据泛化,解决数据稀疏问题数字 $number日期 $date时间 $time网址等 $literal专有名词处理:如“东北大学信息学院”建议拆分为“东北大学”、“信息学院”,有助于抽取出更多翻译规则 英文大小写句尾结束符与最后单词用空格分开数据泛化处理 其他全角 阅读全文

posted @ 2021-04-07 16:15 iUpoint 阅读(236) 评论(0) 推荐(0) 编辑

导航