1.概述 A Neural Attention Model for Sentence Summarization是一个用于处理文本总结的模型,是基于seq2seq提出的,论文地址https://www.aclweb.org/anthology/D15-1044.pdf 2.模型 3.模型公式 目标: ...
分类:
其他好文 时间:
2020-05-28 01:06:36
阅读次数:
68
题意 $n$个位置$s_i$,$q$次查询$l,r,z$,求满足$[a,b]\subseteq [l,r],\sum\limits_^b\sum\limits_^b s_i+s_j\ge z$的区间最大值最小 做法 有用的区间只有$O(n)$个 若$s_<max_^r{s_i}\(,则不需要\)[l ...
分类:
其他好文 时间:
2020-05-28 01:00:57
阅读次数:
60
Given an array A of integers, return the number of (contiguous, non-empty) subarrays that have a sum divisible by K. Example 1: Input: A = [4,5,0,-2,- ...
分类:
其他好文 时间:
2020-05-28 00:53:15
阅读次数:
54
方法一: class Solution { public int subarraysDivByK(int[] A, int K) { Map<Integer, Integer> record = new HashMap<>(); record.put(0, 1); int sum = 0, ans ...
分类:
编程语言 时间:
2020-05-27 23:17:46
阅读次数:
114
1.读取 def read_dataset(): file_path = r'C:\Users\D。\SMSSpamCollection' sms = open(file_path, encoding='utf-8') sms_data = [] sms_label = [] csv_reader ...
分类:
其他好文 时间:
2020-05-27 22:04:37
阅读次数:
97
聚集函数 count sum avg max min sum、avg、max、min 忽略值为null的行 count(*) 统计行数,包含值为null的行 count(a) 统计a不为null的行数,忽略null count(a=1) 统计a为1的行数 select sum(a*b) as c . ...
分类:
数据库 时间:
2020-05-27 20:44:44
阅读次数:
102
package LeetCode_377 /** * 377. Combination Sum IV * https://leetcode.com/problems/combination-sum-iv/description/ * * Given an integer array with all ...
分类:
其他好文 时间:
2020-05-27 18:53:27
阅读次数:
60
有的时候我们需要在自己创建的AOP上面使用接口,比如我使用了Aspect-Injector,Aspect-Injector的自定义切面继承了Attribute,没办法在构造函数注入,这时候就可以用到依赖注入注册后的实例了。 新建一个类,类里面有一个静态的ILifetimeScope来保存注入后的实例 ...
分类:
Web程序 时间:
2020-05-27 18:29:12
阅读次数:
172
判断网络的连接状态/连接类型,可以直接查看网络适配器列表的状态 适配器列表: 1 public static NetworkInterface[] GetAllAdapters() 2 { 3 //获取本地计算机上网络接口的对象 4 NetworkInterface[] adapters = Net ...
分类:
其他好文 时间:
2020-05-27 15:28:21
阅读次数:
85
NOT IN vs. NOT EXISTS vs. LEFT JOIN / IS NULL: SQL Server NOT IN ? 1 2 3 4 5 6 7 SELECT l.id, l.value FROM [20090915_anti].t_left l WHERE l.value NOT ...
分类:
数据库 时间:
2020-05-27 15:04:14
阅读次数:
92