NLP
文章平均质量分 96
小埋、
这个作者很懒,什么都没留下…
展开
-
【论文笔记】Get To The Point: Summarization with Pointer-Generator Networks
题目:Get To The Point:Summarization with Pointer-Generator Networks 论文地址文章目录Abstract1 Introduction2 Our Models2.1 Sequence-to-sequence attentional model2.2 Pointer-generator network2.3 Coverage mechanismAbstract 神经Seq-seq模型为abstractive文本摘要提供了一种可行的新方法(原创 2020-10-17 18:56:45 · 493 阅读 · 0 评论 -
Python自动文本摘要Rouge-N的实现
本文只适用于简单的使用Rouge-1, Rouge-2,Rouge-L这三个评价体系1.使用pip进行安装rouge2.计算Rouge的值关于理论部分,可以参考这篇博客,写的很详细。1.使用pip进行安装rouge$ pip install rouge2.计算Rouge的值def rouge(a,b): rouge = Rouge() rouge_score = rouge.get_scores(a,b, avg=True) # a和b里面包含多个句子的时候用 rou原创 2020-10-11 18:11:49 · 2023 阅读 · 5 评论 -
【论文笔记】Bridging Hierarchical and Sequential Context Modeling
论文目录Abstract1. Introduction2. Method2.1 Word-level compare-Aggregate2.2 Sentence-level compare-Aggregate2.3 Question-aware Sequential Extractor3. Experiment3.2 Experimental Results3.3 Analusis3.3.1 Ablation Study4. Conclusions二、使用步骤1.引入库2.读入数据总结论文题目:Br.原创 2020-10-10 17:24:14 · 1926 阅读 · 0 评论 -
【论文笔记】A COMPARE-AGGREGATE MODEL FOR MATCHING TEXT SEQUENCES
论文目录AbstractIntroductionMethodExperimentsAbstract许多NLP任务,包括机器阅读理解、答案选择和文本涵义都需要进行序列之间的比较,寻找序列间的重要元素是解决这些问题的关键。在本文中,提出来一种较为通用的compare-aggregate框架,该框架先进行词级别的匹配,然后使用CNN进行聚合。主要用两种不同的比较函数去匹配两个向量。使用四种不同的数据集进行评价模型的性能。发现一些基于元素运算的简单比较函数(simple comparison functions原创 2020-09-29 14:45:38 · 817 阅读 · 1 评论 -
Joint Learning of Answer Selection and Answer Summary Generation in Community Question Answering论文笔记
论文目录abstract一、Introduction二、Related Work1.CQA2.文本摘要3.多任务学习三、Method1.问题描述2.模型四、Datasets and Experimental Setting五、Experimental Result**Answer Selection Result****Answer Summary Generation Result****Resource-poor CQA Results**六、Conclusionabstract目前,社区问答(原创 2020-09-26 20:43:22 · 623 阅读 · 3 评论 -
python使用Elasticsearch对wikipedia的数据进行检索(详细流程)
1 先下载wikipediawikepedia下载链接2 利用wikiextractor将其提取出来$git clone https://github.com/attardi/wikiextractor$python wikiextractor/WikiExtractor.py INPUT_FILE -o OUTPUT_PATH --json3 将wikidedia的数据进行清洗,具体做法如下首先用下面的代码去除doc和空格,只保留文本def deal_enwiki(read_path,原创 2020-09-23 21:40:39 · 917 阅读 · 0 评论 -
谈一谈对transformer的理解(代码)
关于transformer的原理,这里就不多说,主要还是结合论文中的图来对代码进行一下讲解。看这张图,其实可以看到最核心的部分就是下面这一块:关于讲解,我就直接写在代码里面,用中文来对其进行详细的一个介绍。相对应的代码如下:class ScaledDotProductAttention(nn.Module): ''' Scaled Dot-Product Attention ''' def __init__(self, temperature, attn_dro.原创 2020-09-23 20:56:31 · 504 阅读 · 0 评论 -
Example object is not iterable
用torchtext的时候,建立vocab,出现错误:错误原因:调用的对象出现错误。应该调用的是example数据类型的对象原创 2020-05-25 10:41:03 · 370 阅读 · 0 评论 -
index out of range: Tried to access index 514 out of table with 513 rows.
错误:源码:将roberta作为特征提取器:将max_length改成512原创 2020-05-22 16:32:21 · 827 阅读 · 1 评论