日期:2014-05-17  浏览次数:20873 次

求高人送此 org.textmining.text.extraction.WordExtractor包
import java.io.File;
import java.io.FileInputStream;
import org.textmining.text.extraction.WordExtractor;
public class WordReader {

 public static String readDoc(String doc) throws Exception {
  // 创建输入流读取doc文件
  FileInputStream in = new FileInputStream(new File(doc));
  WordExtractor extractor = null;
  String text = null;
  // 创建WordExtractor
  extractor = new WordExtractor();
  // 对doc文件进行提取
  text = extractor.extractText(in);
  return text;
 }
 /**
  * @param args
  */
 public static void main(String[] args) {
  // TODO Auto-generated method stub
  try{
  String text = WordReader.readDoc("E:/Strust.doc");
  System.out.println(text);
  }catch(Exception ex){
  ex.printStackTrace();
  }
 }
}
用MyEclipse编译时提示缺少org.textmining.text.extraction.WordExtractor这个jar包,那位有请给我,QQ:549945715

------解决方案--------------------
http://www.jar114.com/s/?keyword=WordExtractor 可以去这里下载即可。