Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arpitbbhayani/WikiSe
/ functions
Functions
116 in github.com/arpitbbhayani/WikiSe
⨍
Functions
116
◇
Types & classes
20
↓ 158 callers
Method
add
Adds a string to the trie @param s String to add to the trie
src/com/wikise/util/Trie.java:44
↓ 56 callers
Method
ends
(String s)
src/com/wikise/process/Stemmer.java:190
↓ 31 callers
Method
close
Closes the buffered writer stream for the metadata.
src/com/wikise/util/FileIO.java:85
↓ 28 callers
Method
r
(String s)
src/com/wikise/process/Stemmer.java:211
↓ 10 callers
Method
processWord
(String word , int toSet)
src/com/wikise/process/WikiTextParser.java:385
↓ 8 callers
Method
cons
(int i)
src/com/wikise/process/Stemmer.java:114
↓ 6 callers
Method
contains
Returns true iff the String is in the trie @param s query @return true if the query is in the trie
src/com/wikise/util/Trie.java:84
↓ 6 callers
Method
m
()
src/com/wikise/process/Stemmer.java:133
↓ 6 callers
Method
setto
(String s)
src/com/wikise/process/Stemmer.java:202
↓ 4 callers
Method
isStopword
(String word)
src/com/wikise/util/Classifiers.java:118
↓ 3 callers
Method
add
Add a character to the word being stemmed. When you are finished adding characters, you can call stem(void) to stem the word.
src/com/wikise/process/Stemmer.java:69
↓ 3 callers
Method
getPageId
()
src/com/wikise/parse/WikiPageConcise.java:12
↓ 3 callers
Method
getPageTitle
()
src/com/wikise/parse/WikiPageConcise.java:20
↓ 3 callers
Method
getPostingsForSingleTerm
(String singleTerm)
src/com/wikise/search/FileReadIO.java:181
↓ 2 callers
Method
add
Adds a string to the trie @param s String to add to the trie
src/com/wikise/util/HashedTrie.java:49
↓ 2 callers
Method
addAll
Adds a String[] of words to the trie @param sa String[] to add to the trie
src/com/wikise/util/Trie.java:63
↓ 2 callers
Method
cvc
(int i)
src/com/wikise/process/Stemmer.java:182
↓ 2 callers
Method
doublec
(int j)
src/com/wikise/process/Stemmer.java:167
↓ 2 callers
Method
dumpTemporaryFileToDisk
Dumps the data of temporary file to disk and closes the Buffered writer.
src/com/wikise/util/FileIO.java:119
↓ 2 callers
Method
getStemmedWord
( String word )
src/com/wikise/util/Classifiers.java:94
↓ 2 callers
Method
initialize
()
src/com/wikise/util/Classifiers.java:30
↓ 2 callers
Method
stem
Stem the word placed into the Stemmer buffer through calls to add(). Returns true if the stemming process resulted in a word different from the input.
src/com/wikise/process/Stemmer.java:361
↓ 2 callers
Method
toString
After a word has been stemmed, it can be retrieved by toString(), or a reference to the internal buffer can be retrieved by getResultBuffer and getRes
src/com/wikise/process/Stemmer.java:98
↓ 2 callers
Method
vowelinstem
()
src/com/wikise/process/Stemmer.java:160
↓ 2 callers
Method
writeDataToTemporaryFile
Writes the word wordToWrite into temporaryfile number countTemporaryFile using buffered writer. @param wordToWrite String that is to be written onto t
src/com/wikise/util/FileIO.java:100
↓ 1 callers
Method
close
()
src/com/wikise/util/HashedFileIO.java:61
↓ 1 callers
Method
compress
( String line )
src/com/wikise/util/CompressionDecompression.java:11
↓ 1 callers
Method
decompress
( MappedByteBuffer compressedBytes )
src/com/wikise/util/CompressionDecompression.java:55
↓ 1 callers
Method
doStemming
()
src/com/wikise/util/Classifiers.java:108
↓ 1 callers
Method
dumpInfoInformation
Dumps the infobox information about the wiki pages into file "infobox.dat" @param stringToWrite
src/com/wikise/util/FileIO.java:58
↓ 1 callers
Method
dumpMetaInformation
Dumps the meta information about the wiki pages into file "metadata.dat" @param wikiPage @param infoboxSeekLocation
src/com/wikise/util/FileIO.java:74
↓ 1 callers
Method
fillInfoboxKeywords
()
src/com/wikise/util/Classifiers.java:71
↓ 1 callers
Method
fillStopWords
()
src/com/wikise/util/Classifiers.java:131
↓ 1 callers
Method
fillUnrelatedDocuments
(String indexFolderPath)
src/com/wikise/util/Classifiers.java:42
↓ 1 callers
Method
getB
()
src/com/wikise/process/TermObject.java:16
↓ 1 callers
Method
getInfoboxSeekLocation
()
src/com/wikise/process/WikiTextParser.java:582
↓ 1 callers
Method
getLineToWrite
(PriorityQueue<String> listOfWords, BufferedReader[] reader)
src/com/wikise/util/FileIO.java:344
↓ 1 callers
Method
getOffsetInDictionary
Reads secondary index for the word and gets the offset in the Dictionary index. This function is called to get the offset in dictonary. This offset is
src/com/wikise/search/FileReadIO.java:339
↓ 1 callers
Method
getOffsetInInvertedIndex
This method searches the word in the dictionary file and if found returns the corresponding offset in the index file. @param s Search term @return Off
src/com/wikise/search/FileReadIO.java:374
↓ 1 callers
Method
getOffsetInInvertedIndexFile
Returns the offset in the inverted index given the offset in dictionary. @param offsetInDictionary @param s @return <offset>_<next_offset>
src/com/wikise/search/FileReadIO.java:275
↓ 1 callers
Method
getPageTermInfo
()
src/com/wikise/process/WikiTextParser.java:47
↓ 1 callers
Method
getPageText
()
src/com/wikise/parse/WikiPageConcise.java:28
↓ 1 callers
Method
getPostingList
Main search function. This function is exposed to the rest of the world. Gets a posting list for a search query (can have multiple words). @param s se
src/com/wikise/search/FileReadIO.java:64
↓ 1 callers
Method
getPostingsListForTerm
returns the posting list given the offset in the dictionary and processed term.. @param processedTerm @param offsetInDictionary @return @throws IOExce
src/com/wikise/search/FileReadIO.java:217
↓ 1 callers
Method
getTermFrequency
()
src/com/wikise/process/TermObject.java:24
↓ 1 callers
Method
getWikiPageTitle
returns Page Title given docID. @param docId Wiki Document ID.
src/com/wikise/search/Search.java:55
↓ 1 callers
Method
initialize
Initializes the fileIO streams.
src/com/wikise/util/FileIO.java:43
↓ 1 callers
Method
isUnrelated
(String docId)
src/com/wikise/util/Classifiers.java:38
↓ 1 callers
Method
loadPageMetadata
Reads the metadata and create an online index.
src/com/wikise/search/Search.java:141
↓ 1 callers
Method
mergeTemporaryFiles
Merges temporary files into a file named "index.idx" using external k-way merging. @param countTemporaryFile Number of temporary files that were creat
src/com/wikise/util/FileIO.java:135
↓ 1 callers
Method
parse
Initiation of parsing process. Parsing is done Page By Page. Dumping the data into a file is made thread safe. @param indexFolderPath
src/com/wikise/parse/WikiParse.java:44
↓ 1 callers
Method
parseText
()
src/com/wikise/process/WikiTextParser.java:55
↓ 1 callers
Method
processCategories
(StringBuilder categoryString)
src/com/wikise/process/WikiTextParser.java:427
↓ 1 callers
Method
processGeobox
(StringBuilder geoboxString)
src/com/wikise/process/WikiTextParser.java:406
↓ 1 callers
Method
processInfobox
(StringBuilder infoboxString)
src/com/wikise/process/WikiTextParser.java:449
↓ 1 callers
Method
processTitle
(String titleString)
src/com/wikise/process/WikiTextParser.java:559
↓ 1 callers
Method
removeUnrelatedPages
(String metaFilePath, String sMetaFilePath , String outputFilePath , String outputFilePathDoc)
src/com/wikise/util/UtilCodes.java:271
↓ 1 callers
Method
search
(int numberOfSearchTerms, ArrayList<HashSet<String>> searchTermMap, HashMap<String, Integer> searchFieldsForTe
src/com/wikise/search/Search.java:22
↓ 1 callers
Method
setB
(Byte b)
src/com/wikise/process/TermObject.java:20
↓ 1 callers
Method
setPageId
(String pageId)
src/com/wikise/parse/WikiPageConcise.java:16
↓ 1 callers
Method
setPageText
(String pageText)
src/com/wikise/parse/WikiPageConcise.java:32
↓ 1 callers
Method
setPageTitle
(String pageTitle)
src/com/wikise/parse/WikiPageConcise.java:24
↓ 1 callers
Method
setTermFrequency
(int termFrequency)
src/com/wikise/process/TermObject.java:28
↓ 1 callers
Method
splitIntoMultiple
Very rare situation when number of temporary files created is 1. @param countTemporaryFile @throws IOException
src/com/wikise/util/FileIO.java:276
↓ 1 callers
Method
step1
()
src/com/wikise/process/Stemmer.java:235
↓ 1 callers
Method
step2
()
src/com/wikise/process/Stemmer.java:259
↓ 1 callers
Method
step3
()
src/com/wikise/process/Stemmer.java:265
↓ 1 callers
Method
step4
()
src/com/wikise/process/Stemmer.java:299
↓ 1 callers
Method
step5
()
src/com/wikise/process/Stemmer.java:316
↓ 1 callers
Method
step6
()
src/com/wikise/process/Stemmer.java:347
↓ 1 callers
Method
tfidf
(int tf, int df, int bitRepresentation)
src/com/wikise/search/FileReadIO.java:175
↓ 1 callers
Method
tfidf
(int tf, int df)
src/com/wikise/search/SearchThread.java:84
Method
FileIO
Public constructor. @param indexFolderPath is the path of the folder where in indexes are to be saved.
src/com/wikise/util/FileIO.java:31
Method
FileReadIO
(String folderPath)
src/com/wikise/search/FileReadIO.java:44
Method
HashedFileIO
(String folderPath)
src/com/wikise/util/HashedFileIO.java:38
Method
HashedFileReadIO
(String folderPath)
src/com/wikise/search/HashedFileReadIO.java:25
Method
HashedFileSecondaryReadIO
(String folderPath)
src/com/wikise/search/HashedFileSecondaryReadIO.java:24
Method
HashedTrie
Default contructor
src/com/wikise/util/HashedTrie.java:20
Method
Search
(FileReadIO fileReadIO , String indexFolderPath)
src/com/wikise/search/Search.java:17
Method
SearchThread
(FileReadIO fileReadIO , int index , ConcurrentHashMap<String , Double> map , ArrayList<HashSet<String>> s, Ha
src/com/wikise/search/SearchThread.java:20
Method
Stemmer
()
src/com/wikise/process/Stemmer.java:58
Method
TermObject
(Byte b, int termFrequency)
src/com/wikise/process/TermObject.java:11
Method
Trie
Default contructor
src/com/wikise/util/Trie.java:15
Method
WikiParse
This is the constructor for WikiParse @param filePath This is the path of the XML file to be parsed The document needs to be a prope
src/com/wikise/parse/WikiParse.java:31
Method
WikiSAXParseHandler
(String indexFolderPath)
src/com/wikise/parse/WikiSAXParseHandler.java:70
Method
WikiTextParser
(WikiPageConcise wikiPage, TreeMap<String, TreeSet<String>> invertedIndex, FileIO fileIO)
src/com/wikise/process/WikiTextParser.java:36
Method
addAll
Adds a String[] of words to the trie @param sa String[] to add to the trie
src/com/wikise/util/HashedTrie.java:68
Method
characters
(char[] ch, int start, int length)
src/com/wikise/parse/WikiSAXParseHandler.java:184
Method
contains
Returns TreeSet<Integer> iff the String is in the trie null otherwise @param s query @return TreeSet if the query is in the trie
src/com/wikise/util/HashedTrie.java:90
Method
createCompressedIndex
( String indexFolderPath )
src/com/wikise/util/UtilCodes.java:116
Method
createSMetadata
From metedataFilePath ( old meta data file) this function creates 1. New meta data file -> pageMetadataFilePath ( Infobox offset and title ) 2. s meta
src/com/wikise/util/UtilCodes.java:29
Method
dumpMetaInformation
(WikiPageConcise wikiPage)
src/com/wikise/util/HashedFileIO.java:156
Method
dumpSecondary
(TreeSet<String> allStrings, HashedTrie trie)
src/com/wikise/util/HashedFileIO.java:118
Method
editDistance
(String str1,String str2)
src/com/wikise/search/Search.java:33
Method
endDocument
()
src/com/wikise/parse/WikiSAXParseHandler.java:189
Method
endElement
(String uri, String localName, String qName)
src/com/wikise/parse/WikiSAXParseHandler.java:93
Method
getPostingListForTerm
@deprecated Gets the posting list for a term s. @param s search term (stemmed) @return Posting list for a single term. @throws IOException
src/com/wikise/search/FileReadIO.java:443
Method
getResultBuffer
Returns a reference to a character buffer containing the results of the stemming process. You also need to consult getResultLength() to determine the
src/com/wikise/process/Stemmer.java:110
Method
getResultLength
Returns the length of the word resulting from the stemming process.
src/com/wikise/process/Stemmer.java:103
Method
getSeekLocations
(String searchWord )
src/com/wikise/search/HashedFileSecondaryReadIO.java:34
next →
1–100 of 116, ranked by callers