Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WuLC/KeywordExtraction
/ functions
Functions
25 in github.com/WuLC/KeywordExtraction
⨍
Functions
25
◇
Types & classes
8
↓ 6 callers
Method
readDirFileNames
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 callers
Method
loadFile
(String filePath)
src/com/lc/nlp/parsedoc/ReadFile.java:18
↓ 3 callers
Method
getWordScore
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 callers
Method
idfForDir
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 callers
Method
shouldInclude
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 callers
Method
getDirTFIDF
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 callers
Method
getKeyword
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 callers
Method
getKeywords
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 callers
Method
getTF
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 callers
Method
setKeywordsNumber
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 callers
Method
setWindowSize
(int window)
src/com/lc/nlp/keyword/algorithm/TextRank.java:35
↓ 1 callers
Method
shouldInclude
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 callers
Method
tfForDir
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
Method
calculate
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
Method
compare
(Map.Entry<String,Float> c1,Map.Entry<String,Float> c2)
src/com/lc/nlp/keyword/algorithm/TFIDF.java:237
Method
compare
(Map.Entry<String, Float> c1, Map.Entry<String, Float> c2)
src/com/lc/nlp/keyword/algorithm/TextRankWithTFIDF.java:66
Method
compare
(Map.Entry<String, Float> c1 , Map.Entry<String, Float> c2)
src/com/lc/nlp/keyword/algorithm/TextRankWithMultiWin.java:65
Method
compare
(Map.Entry<String, Float> o1, Map.Entry<String, Float> o2)
src/com/lc/nlp/keyword/algorithm/TextRank.java:58
Method
integrateMultiWindow
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
Method
parseXML
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
Method
setKeywordNumber
set the number of keywords to extract @param sysKeywordNum(int): number of keywords to extractt
src/com/lc/nlp/keyword/algorithm/TextRankWithMultiWin.java:24
Method
setKeywordNumber
(int sysKeywordNum)
src/com/lc/nlp/keyword/algorithm/TextRank.java:29
Method
setKeywordsNumber
set the number of keywords to extract @param number(int): number of keywords to extract
src/com/lc/nlp/keyword/algorithm/TextRankWithTFIDF.java:29
Method
textRankMultiplyIDF
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
Method
textRankTFIDFVote
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