- 博客(5)
- 资源 (3)
- 收藏
- 关注
原创 Lucene updateDocument注意问题
lucene修改索引updateDocument,表象是一直没有更改结果,可能受限于indexreader和indexwriter不能同时开启! 解决方案:将要更改的document对象克隆一份(indexreader和indexwriter可能不能同时操作同一个对象例如Field),然后根据term使用deleteDocument先删除之前的doc,然后把克隆的Document通过addD...
2013-11-20 17:29:59 467
原创 POI获取WORD标题
public class WordUtil { //2003 public static List<String> getWordTitles2003(String path) throws IOException{ File file = new File(path); String filename = file.getName(); filena...
2013-11-07 20:01:59 2367
原创 笛卡尔积
public class DescartesProduct { /** * * @Date: 2013-7-1上午10:14:14 * @Description: 笛卡尔积 * @param words * @return */ public static String[] descartes(String[][]words){ Strin...
2013-11-06 10:37:43 193
原创 句子中快速找词
public class WordsFinder { /** * 统计word在text中出现的次数 * @Date: 2013-6-14下午05:57:19 * @Description: int * @param word * @param text * @return */ public static int count(String ...
2013-11-06 10:36:27 167
原创 编辑距离
public class EditDistance { private static int Minimum(int a, int b, int c) { int mi; mi = a; if (b < mi) { mi = b; } if (c < mi) { mi = c; } return mi; } ...
2013-11-06 10:28:37 116
postman-windows64
2019-04-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人