MCPcopy Create free account

hub / github.com/WuLC/KeywordExtraction / functions

Functions25 in github.com/WuLC/KeywordExtraction

↓ 6 callersMethodreadDirFileNames
read the paths of all the files under a directory,including the sub-directories of it @param dirPath(String): path of the directory, remember the las
src/com/lc/nlp/parsedoc/ReadDir.java:26
↓ 4 callersMethodloadFile
(String filePath)
src/com/lc/nlp/parsedoc/ReadFile.java:18
↓ 3 callersMethodgetWordScore
return score of each word after TextRank algorithm @param title(String): title of document @param content(String): content of document @param window(i
src/com/lc/nlp/keyword/algorithm/TextRank.java:104
↓ 2 callersMethodidfForDir
calculate IDF values for each word under a directory @param dirPath(String): path of the directory @return(HashMap<String, Float>): "word:IDF Value"
src/com/lc/nlp/keyword/algorithm/TFIDF.java:123
↓ 2 callersMethodshouldInclude
judge whether a word belongs to stop words @param term(Term): word needed to be judged @return(boolean): if the word is a stop word,return false;othe
src/com/lc/nlp/keyword/algorithm/TFIDF.java:90
↓ 1 callersMethodgetDirTFIDF
calculate TF-IDF value for each word of each file under a directory @param dirPath(String): path of the directory @return(Map<String, HashMap<String,
src/com/lc/nlp/keyword/algorithm/TFIDF.java:180
↓ 1 callersMethodgetKeyword
extract keywords in terms of title and content of document @param title(String): title of document @param content(String): content of document @param
src/com/lc/nlp/keyword/algorithm/TextRank.java:49
↓ 1 callersMethodgetKeywords
get keywords of each file under a certain directory @param dirPath(String): path of directory @param keywordNum(int): number of keywords to extract @r
src/com/lc/nlp/keyword/algorithm/TFIDF.java:216
↓ 1 callersMethodgetTF
calculate TF value of each word in terms of the content of file @param fileContent(String): content of file @return(HashMap<String, Float>): "words:T
src/com/lc/nlp/keyword/algorithm/TFIDF.java:43
↓ 1 callersMethodsetKeywordsNumber
change the number of keywords,default 5 @param keywordNum(int): number of keywords that need to be extracted
src/com/lc/nlp/keyword/algorithm/TFIDF.java:33
↓ 1 callersMethodsetWindowSize
(int window)
src/com/lc/nlp/keyword/algorithm/TextRank.java:35
↓ 1 callersMethodshouldInclude
judge whether a word belongs to stop words @param term(Term): word needed to be judged @return(boolean): if the word is a stop word,return false;othe
src/com/lc/nlp/keyword/algorithm/TextRank.java:90
↓ 1 callersMethodtfForDir
calculate TF values for each word of each file under a directory @param dirPath(String): path of the directory @return(HashMap<String,HashMap<String,
src/com/lc/nlp/keyword/algorithm/TFIDF.java:102
Methodcalculate
calculate the precision value, recall value and f1 score in terms of the keywords extracted by the algorithm and manually @param systemKeywords(List<S
src/com/lc/nlp/keyword/evaluate/F1Score.java:28
Methodcompare
(Map.Entry<String,Float> c1,Map.Entry<String,Float> c2)
src/com/lc/nlp/keyword/algorithm/TFIDF.java:237
Methodcompare
(Map.Entry<String, Float> c1, Map.Entry<String, Float> c2)
src/com/lc/nlp/keyword/algorithm/TextRankWithTFIDF.java:66
Methodcompare
(Map.Entry<String, Float> c1 , Map.Entry<String, Float> c2)
src/com/lc/nlp/keyword/algorithm/TextRankWithMultiWin.java:65
Methodcompare
(Map.Entry<String, Float> o1, Map.Entry<String, Float> o2)
src/com/lc/nlp/keyword/algorithm/TextRank.java:58
MethodintegrateMultiWindow
integrate the results of TextRank algorithm with different co-occurance window @param title(String): title of the document @param content(String): co
src/com/lc/nlp/keyword/algorithm/TextRankWithMultiWin.java:38
MethodparseXML
return the content of a XML file of a certain tag the tag should be second level,or you can modify the code to change to any level @param fileName(Str
src/com/lc/nlp/parsedoc/ParseXML.java:31
MethodsetKeywordNumber
set the number of keywords to extract @param sysKeywordNum(int): number of keywords to extractt
src/com/lc/nlp/keyword/algorithm/TextRankWithMultiWin.java:24
MethodsetKeywordNumber
(int sysKeywordNum)
src/com/lc/nlp/keyword/algorithm/TextRank.java:29
MethodsetKeywordsNumber
set the number of keywords to extract @param number(int): number of keywords to extract
src/com/lc/nlp/keyword/algorithm/TextRankWithTFIDF.java:29
MethodtextRankMultiplyIDF
multiply the TextRank-socre of a word by the IDF value of this word in a corpus @param dirPath(String): path of the directory of the corpus @return(Ma
src/com/lc/nlp/keyword/algorithm/TextRankWithTFIDF.java:40
MethodtextRankTFIDFVote
integrate the results generated by TextRank and TF-IDF, choose those words that co-occure in both results, if the number of co-occuring words is not e
src/com/lc/nlp/keyword/algorithm/TextRankWithTFIDF.java:90