- 博客(7)
- 收藏
- 关注
原创 StaX incremental parsing
import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.InputStream;import java.util.ArrayList;import java.util.Date;import java.util.Iterator;import java.uti...
2012-03-23 19:39:16
107
原创 TF-IDF[2]
package com.sap.research.semantic;import java.io.File;import java.util.ArrayList;import java.util.HashMap;import java.util.Map;import javax.print.attribute.standard.OutputDeviceAssign...
2012-03-22 17:57:09
71
原创 TF-IDF
package com.sap.research.semantic;import java.io.BufferedWriter;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileWriter;impor...
2012-03-22 17:55:59
77
原创 LongSentenceFilter Joshua SMT [2]
Note that the first version of LongSentenceFilter is not complete, because even after filtering there still may be French sentences of more than 100 words. Now this version tackles this problem. Note ...
2012-02-11 05:52:54
123
Extract text of special font style using htmlparser
package extractor;import java.io.File;import java.io.IOException;import org.htmlparser.Node;import org.htmlparser.NodeFilter;import org.htmlparser.Parser;import org.htmlparser.filte...
2012-01-28 02:22:11
70
原创 Convert jdom Document to String
XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());String xmlString = outputter.outputString(document);System.out.println(xmlString); This example demonstrate how to convert JDO...
2011-12-25 20:14:40
75
LongSentenceFilter Joshua SMT
I have been working on Joshua, a toolkit for SMT. Before extracting grammar from parallel corpus, one necessary step is to eliminate sentences of more than 100 words. For Hansard, it is common tha...
2011-12-18 20:14:04
103
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人