- 博客(12)
- 收藏
- 关注
原创 【阿里面试题】已知foo()方法能以各50%概率返回0或1,基于foo()方法实现boo()方法,能以各10%的概率返回[0-9]中的一个数字(Python解法)
前几天在网上看到这样一道面试题,据说是阿里的题目
2020-02-26 23:41:41
1243
原创 解决MacOS下pip安装rpy2失败问题(pip install rpy2报错clang: error: unsupported option '-fopenmp')
rpy2是一个Python的包,允许你在Python内部调用R语言。但假如你用的是苹果电脑,那么当你通过pip install -U rpy2安装或更新时有可能会报错执行时可能会报错,报错信息类似:clang: error: unsupported option '-fopenmp'error: command 'gcc' failed with exit status 1---------...
2020-01-24 01:39:14
1453
原创 CS224n: Natural Language Processing with Deep Learning——assigment 3 代码
q1_window.py#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Q1: A window into NER"""from __future__ import absolute_importfrom __future__ import divisionimport argparseimport sysimport
2017-08-18 23:14:05
560
翻译 翻译:Distributed Representations of Words and Phrases and their Compositionality
原文:《Distributed Representations of Words and Phrases and their Compositionality》 原作者:Tomas Mikolov等摘要最近引入的连续Skip-gram模型是学习高质量distributed vector representations(分布向量表示)的有效方法,distributed vector represen
2017-08-02 21:17:33
15495
3
原创 Windows下利用win32clipboard实现Python的剪切板(Clipboard)操作
Windows下用python实现剪切板(clipboard)操作
2017-08-01 05:50:49
18707
6
翻译 翻译:Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation
使用RNN Encoder-Decoder模型学习统计机器翻译的短语表示原文:《Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation》 原作者:Kyunghyun Cho 等注:本文是较早提出seq2seq模型的经典论文,翻译一下大家共同学习本
2017-08-01 04:52:40
8014
2
翻译 面向任务的对话的键值检索网络(Key-Value Retrieval Networks for Task-Oriented Dialogue)
面向任务的对话的键值检索网络原文:《Key-Value Retrieval Networks for Task-Oriented Dialogue》 原作者:Mihail Eric, Lakshmi Krishnan, Francois Charette, and Christopher D. Manning摘要面向任务的神经对话系统一直在尽力实现与知识库的平滑对接。在本试验中,...
2017-07-25 05:26:34
2237
5
原创 TextToSpeech的UtteranceProgressListener触发问题
最近在写一个安卓语音识别的项目,结果助教要求将其中的dialog变成voice dialog,也就是首先要把dialog的内容读出来,然后让用户说"yes"或者"no"触发相应的操作。本来不是很难,只需要在tts的callback中的onDone方法触发新的语音识别即可,但是遇到了一点小问题让我debug了两天。首先上代码,这是tts的类public class SpeechForDial
2016-03-18 21:00:26
5136
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人