自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 资源 (1)
  • 收藏
  • 关注

转载 拆掉Nvidia显卡后Ubuntu循环登录问题

拆掉显卡后Ubuntu循环登录问题如果拆掉Nvidia显卡后想正常使用Ubuntu,需要执行如下操作,不然会出现循环登录问题: 1、在登录界面,按下Ctrl+Alt+F1,输入账号密码登录Ubuntu 2、卸载Nvidia显卡驱动sudo apt-get remove --purge nvidia-*sudo apt-get install ubuntu-desktopsudo...

2018-03-02 16:40:59 801 1

原创 人工智能入门参考资料

机器学习与深度学习(1)机器学习《机器学习实战》,PeterHarrington著;(讲解通俗易懂,用Python一步一步实现算法,适合入门)《机器学习》,周志华著;(对机器学习常用算法做了基本概述)《Pattern Recognition and Machine Learning》, Christopher Bishop 著;(经典机器学习书籍)《统计学习方法》,李航...

2018-02-27 18:58:39 1636

原创 ubuntu 安装boost 1.58

Ubuntu编译安装BOOST1、下载boost 1.58 wget -O boost_1_58_0.tar.bz2 http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.bz2/download2、解压文件 # tar --bzip2 -xvf boost_1_58_0.tar.bz...

2018-02-26 21:13:30 6018 2

原创 windows中github安装及使用

一、github命令图示二、安装下载git的windows版本:https://git-scm.com/downloads 安装的时候选默认,一直Enter就OK 安装完成后,最后设置用户名和邮箱地址git config --global user.name "你的用户名"git config --global user.email "你的邮箱地址"三、使用...

2018-02-13 21:36:10 394

原创 Nematus(三)技巧分析

神经机器翻译工具Nematus Nematus中的技巧分析1、build_model 解析?build_encoder 解析?目标语言端句子的处理? build_model 解析,包括 建立编码器,和 建立解码器 建立编码器 x,ctx = build_encoder(tparams,options,trng,use_noise,x_mask,sampl

2018-01-28 20:10:26 1090

原创 Nematus(二)程序运行流程分析

神经机器翻译工具Nematus 程序运行流程分析nematus/nmt.py/train (程序入口,从此函数开始分析)1.1 读取源语言和目标语言词汇表 # 获取设置的超参数参数 model_options = locals().copy() print 'Model options:',model_options # 加

2018-01-28 20:09:28 756

原创 Nematus(一)数据预处理与超参数配置

神经机器翻译工具Nematus 代码:https://github.com/czhiming/Nematus1、数据预处理 ./preprocess.sh主要流程包括:tokenization(符号化处理) This means that spaces have to be inserted between (e.g.) words and punctu

2018-01-28 20:07:05 1757

转载 numpy.loadtxt

numpy.loadtxtnumpy.loadtxt(fname, dtype=<type 'float'>, comments='#', delimiter=None, converters=None, skiprows=0, usecols=None, unpack=False, ndmin=0)[source]Load data from a text file.Each

2018-01-23 22:55:04 969

原创 朴素贝叶斯分类器

《机器学习实战》朴素贝叶斯分类器贝叶斯准则:p(c|x)=p(x|c)p(c)p(x)(1) p(c|x) = \frac{p(x|c)p(c)}{p(x)}(1) 上式中,cc表示某个具体的类别,xx表示某个样本的特征向量。问题:对于一个分类问题,给定样本的特征向量x={w1,w2,...,wn}x=\{w_1,w_2,...,w_n\},预测此样本属于类cc的概率?

2018-01-15 21:33:56 344

原创 Linux nohup 命令

后台运行 Linux 命令:nohup ./train.sh > output_file 2>&1 &

2017-09-22 13:25:29 210

原创 生成SGML格式,用于算BLEU,NIST,TER

http://www.statmt.org/wmt17/translation-task.html网址:http://www.statmt.org/wmt11/wrap-xml.perl

2017-09-18 19:22:01 800

原创 terp 安装和使用

下载网址:https://github.com/snover另需要:terp.jar包使用方法:bin/terp -r -h -N -s -c

2017-09-18 18:32:33 805

原创 theano DisconnectedInputError

参考此网址的内容:http://deeplearning.net/software/theano/library/gradient.html

2017-09-15 00:31:31 568

原创 语料库资源

【中英】CWMT,http://nlp.nju.edu.cn/cwmt-wmt/Description of Data.This folder contains data collected and shared by China Workshop on Machine Translation (CWMT) community, for the training, develo

2017-08-25 20:45:14 2609

原创 theano set_subtensor

emb_shifted = tensor.zeros_like(emb) #生成和 emb 形状相同的零矩阵emb_shifted = tensor.set_subtensor(emb_shifted[1:], emb[:-1]) #set_subtensor 用于给tensor赋值emb = emb_shifted #第一层全部变为 0

2017-08-25 13:44:08 1401

转载 二项分布,及其用于dropout

二项分布(binomial distribution): P(N)=(nN)pN(1−p)n−Nnumpy给出的api是:numpy.random.RandomState.binomial(n, p, size=None)11表示对一个二项分布进行采样(size表示采样的次数,draw samples from a binomial distribution

2017-08-24 16:13:28 595

原创 theano,numpy tile函数

numpy中的函数tile相当于复制>>> import numpy as np>>> x=np.tile([[1,0],[0,1]],(4,4))>>> xarray([[1, 0, 1, 0, 1, 0, 1, 0],       [0, 1, 0, 1, 0, 1, 0, 1],       [1, 0, 1, 0, 1, 0, 1, 0],       [0

2017-08-24 12:04:38 322

转载 theano switch函数

IfElse vs SwitchBoth ops build a condition over symbolic variables.IfElse takes a boolean condition and two variables as inputs.Switch takes a tensor as condition and two variables as inputs.

2017-08-24 11:18:40 1053

原创 NMT开源代码

We list below NMT-related resources. (Let us know if there is an interesting source that we have missed out!)[Stanford] NMT projects with code/data/models, Matlab.[NYU] Tutorial Code from DL4MT

2017-07-06 01:22:14 679

原创 Linux 挂载硬盘

sudo vim /etc/fstab/dev/sdb1 ~/NLP  ntfs  defaluts 0 1

2016-09-23 18:03:51 193

原创 jar 包的创建

jar  cvf staford-postagger.jar edu org

2016-09-23 17:54:08 210

简易浏览器

一个简易的浏览器,有简单的浏览功能。实现了一个动态真彩按钮工具栏。

2015-03-30

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除