org.hibernate.search.test.util.textbuilder
Class WordDictionary
java.lang.Object
org.hibernate.search.test.util.textbuilder.WordDictionary
public class WordDictionary
- extends Object
Test utility meant to build a consistent dictionary of words.
This is not just a random generator: like in natural
languages shorter terms have a higher frequency in a text corpus
and the dictionary size is limited.
- Author:
- Sanne Grinovero
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WordDictionary
public WordDictionary(Set<String> words)
randomWord
public String randomWord()
Copyright © 2006-2010 Hibernate. All Rights Reserved.