public void activateWord2VecModelRules ( File indexDir ) throws IOException { Word2VecModel word2vecModel = language . getWord2VecModel ( indexDir ) ; if ( word2vecModel != null ) { ResourceBundle messages = getMessageBundle ( language ) ; List < Rule > rules = language . getRelevantWord2VecModelRules ( messages , word2vecModel ) ; userRules . addAll ( rules ) ; } }
Activate rules that depend on a word2vec language model .