This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from enum import Enum | |
from utils.logging import get_logger | |
logger = get_logger(__name__) | |
class Pattern(Enum): | |
# OPTIONAL = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use mapped WordNet dictionary can boost speed alot, in JWNL there is an convert method that can create mapped dictionary files, however there it does not support usage count. | |
#To convert dictionary to map# | |
In Windows: | |
java -cp jwnl.jar;utilities.jar;commons-logging.jar net.didion.jwnl.utilities.DictionaryToMap <destination directory> <property file> | |
In unix-like systems: | |
java -cp jwnl.jar:utilities.jar:commons-logging.jar net.didion.jwnl.utilities.DictionaryToMap <destination directory> <property file> |