Class Dictionary
java.lang.Object
edu.tufts.hrilab.slug.parsing.tldl.Dictionary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkLocationName
(String name) static String
convert
(long number) void
generateLocationRules
(String base, String semanticType, boolean delete) Add entries for all homophone variations of new location, overwriting any potentially lingering old entries e.g.void
removeEntry
(String name, String grammar, String meaning, String cognitiveStatus) void
removeLocEntries
(String key) void
setAcceptAll
(boolean tv) wordToNumber
(String input)
-
Constructor Details
-
Dictionary
public Dictionary()
-
-
Method Details
-
setAcceptAll
public void setAcceptAll(boolean tv) -
addEntry
-
tokenize
-
convert
-
wordToNumber
-
getKeySet
-
removeLocEntries
-
removeEntry
-
generateLocationRules
Add entries for all homophone variations of new location, overwriting any potentially lingering old entries e.g. changing from chair 2 to chair two would originally still have homophone entries referencing chair 2- Parameters:
base
-
-
checkLocationName
-