corelib.services.web.searchengine.scanners
Class WordDictionary
java.lang.Object
corelib.services.web.searchengine.scanners.WordDictionary
public class WordDictionary
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WordDictionary
public WordDictionary()
containsWord
public boolean containsWord(java.lang.String word)
getWordEnumeration
public java.util.Enumeration<java.lang.String> getWordEnumeration()
getScore
public int getScore(java.lang.String word)
getWordCount
public int getWordCount()
addWordScore
public void addWordScore(java.lang.String word,
WordScoreEnum score)
- This method adds a word (as well as his score) in the dictionary. Warning: A word must contain at least three characters.
- Parameters:
word - The word should be added to the dictionary.score - The score associated with the word in question.- Since:
- 0.2.3
getWordScore
public int getWordScore(java.lang.String word)
parseString
public void parseString(java.lang.String theString,
WordScoreEnum currentScore)
- Used to retrieve the words contained in the string passed as a parameter of the method. Those words will be merged
with those already contained in the current dictionary.
- Parameters:
theString - The string must be analyzed.currentScore - The score in relation to the current part of the scanned document.- Since:
- 0.2.3
CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.
Copyright 2012 Infini Software - All Rights Reserved.