public class JWordSplitterDictionary extends Object implements Dictionary
Constructor and Description |
---|
JWordSplitterDictionary()
Constructor for a simple dictionary
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String aWord)
Checks if a word is in the dictionary.
|
List<String> |
getAll()
Returns all words in the dictionary.
|
protected Set<String> |
readFileToSet(BufferedReader aReader)
Reads the dictionary to set
|
public JWordSplitterDictionary()
public boolean contains(String aWord)
Dictionary
contains
in interface Dictionary
aWord
- a word.protected Set<String> readFileToSet(BufferedReader aReader) throws IOException
aReader
- a reader.IOException
- if an I/O problem occurs.public List<String> getAll()
Dictionary
getAll
in interface Dictionary
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.