91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 3.9MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-10-28
  • 語(yǔ)言: 其他
  • 標(biāo)簽: Hadoop??文本分類??TF??

資源簡(jiǎn)介

基于Hadoop的文本分類算法系統(tǒng),本系統(tǒng)實(shí)現(xiàn)了分詞處理,停用詞處理(IK);使用樸素貝葉斯分類算法來(lái)對(duì)文本進(jìn)行訓(xùn)練和分類,在測(cè)試過(guò)程中使用詞頻特征選擇作為特征詞選擇算法,分類準(zhǔn)確率達(dá)到了78%,包含卡方特征選擇算法(訓(xùn)練集特征選擇)。

資源截圖

代碼片段和文件信息

package?cn.edu.cqut.bean;

public?class?CategoryTotal?implements?Comparable{
private?String?word;
private?String?category;
private?double?times;
private?double?categoryFileTotal;
private?double?totalFile;

/**
?*?@return?the?word
?*/
public?String?getWord()?{
return?word;
}
/**
?*?@param?word?the?word?to?set
?*/
public?void?setWord(String?word)?{
this.word?=?word;
}
/**
?*?@return?the?category
?*/
public?String?getCategory()?{
return?category;
}
/**
?*?@param?category?the?category?to?set
?*/
public?void?setCategory(String?category)?{
this.category?=?category;
}
/**
?*?@return?the?times
?*/
public?double?getTimes()?{
return?times;
}
/**
?*?@param?times?the?times?to?set
?*/
public?void?setTimes(double?times)?{
this.times?=?times;
}
/**
?*?@return?the?categoryFileTotal
?*/
public?double?getCategoryFileTotal()?{
return?categoryFileTotal;
}
/**
?*?@param?categoryFileTotal?the?categoryFileTotal?to?set
?*/
public?void?setCategoryFileTotal(double?categoryFileTotal)?{
this.categoryFileTotal?=?categoryFileTotal;
}
/**
?*?@return?the?totalFile
?*/
public?double?getTotalFile()?{
return?totalFile;
}
/**
?*?@param?totalFile?the?totalFile?to?set
?*/
public?void?setTotalFile(double?totalFile)?{
this.totalFile?=?totalFile;
}
public?CategoryTotal()?{
super();
}
public?CategoryTotal(String?word?String?category?double?times?double?categoryFileTotal?double?totalFile)?{
super();
this.word?=?word;
this.category?=?category;
this.times?=?times;
this.categoryFileTotal?=?categoryFileTotal;
this.totalFile?=?totalFile;
}
public?CategoryTotal(String?category?double?categoryFileTotal?double?totalFile)?{
super();
this.category?=?category;
this.categoryFileTotal?=?categoryFileTotal;
this.totalFile?=?totalFile;
}
@Override
public?int?compareTo(CategoryTotal?o)?{
int?out?=?-2;
if(this.word.equals(o.getWord())){
out?=?0;
}
if(this.category.equals(o.getCategory())){
out?=?0;
}
if(this.times==o.getTimes()){
out?=?0;
}
if(this.categoryFileTotal==o.getCategoryFileTotal()){
out?=?0;
}
if(this.totalFile==o.getTotalFile()){
out?=?0;
}
return?out;
}
}

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件????????794??2014-05-21?20:22??NativeBayes\.classpath

?????文件????????370??2014-05-21?19:38??NativeBayes\.project

?????文件????????587??2014-05-21?19:38??NativeBayes\.settings\org.eclipse.jdt.core.prefs

?????文件???????2346??2014-06-09?05:07??NativeBayes\bin\cn\edu\cqut\bean\CategoryTotal.class

?????文件???????2396??2014-06-09?05:07??NativeBayes\bin\cn\edu\cqut\mapreduce\FileTotal$FileCountMapper.class

?????文件???????3937??2014-06-09?05:07??NativeBayes\bin\cn\edu\cqut\mapreduce\FileTotal$FileCountReducer.class

?????文件????????479??2014-06-09?05:07??NativeBayes\bin\cn\edu\cqut\mapreduce\FileTotal.class

?????文件???????2412??2014-06-09?05:07??NativeBayes\bin\cn\edu\cqut\mapreduce\ModelTrain$ModelTrainCombiner.class

?????文件???????3069??2014-06-09?05:07??NativeBayes\bin\cn\edu\cqut\mapreduce\ModelTrain$ModelTrainMapper.class

?????文件???????5182??2014-06-09?05:07??NativeBayes\bin\cn\edu\cqut\mapreduce\ModelTrain$ModelTrainReducer.class

?????文件????????574??2014-06-09?05:07??NativeBayes\bin\cn\edu\cqut\mapreduce\ModelTrain.class

?????文件???????3349??2014-06-09?05:07??NativeBayes\bin\cn\edu\cqut\mapreduce\NativeBayes$NativeBayesCombiner.class

?????文件???????3076??2014-06-09?05:07??NativeBayes\bin\cn\edu\cqut\mapreduce\NativeBayes$NativeBayesMapper.class

?????文件???????1130??2014-06-09?05:07??NativeBayes\bin\cn\edu\cqut\mapreduce\NativeBayes$NativeBayesPartitoner.class

?????文件???????5079??2014-06-09?05:07??NativeBayes\bin\cn\edu\cqut\mapreduce\NativeBayes$NativeBayesReducer.class

?????文件????????679??2014-06-09?05:07??NativeBayes\bin\cn\edu\cqut\mapreduce\NativeBayes.class

?????文件???????2845??2014-06-09?05:31??NativeBayes\bin\cn\edu\cqut\run\TestWork.class

?????文件???????2979??2014-06-09?05:07??NativeBayes\bin\cn\edu\cqut\run\TrainWork.class

?????文件???????2476??2014-06-09?05:14??NativeBayes\bin\cn\edu\cqut\util\Curr.class

?????文件???????2638??2014-06-09?05:07??NativeBayes\bin\cn\edu\cqut\util\GetAllFilePath.class

?????文件???????4578??2014-06-09?05:07??NativeBayes\bin\cn\edu\cqut\util\ReadFileFromHdfs.class

?????文件????????412??2014-06-09?04:47??NativeBayes\bin\IKAnalyzer.cfg.xml

?????文件???????8137??2014-06-08?00:14??NativeBayes\bin\stopword.dic

?????文件??????41123??2014-05-21?19:38??NativeBayes\lib\commons-cli-1.2.jar

?????文件?????279781??2014-05-21?19:38??NativeBayes\lib\commons-httpclient-3.0.1.jar

?????文件??????38015??2014-05-21?19:38??NativeBayes\lib\commons-logging-1.0.4.jar

?????文件???????6839??2014-05-21?19:38??NativeBayes\lib\hadoop-0.20.2-ant.jar

?????文件????2689741??2014-05-21?19:38??NativeBayes\lib\hadoop-0.20.2-core.jar

?????文件??????69940??2014-05-21?19:38??NativeBayes\lib\hadoop-0.20.2-tools.jar

?????文件????1165347??2014-05-21?19:38??NativeBayes\lib\IKAnalyzer2012_u6.jar

............此處省略33個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源