/** * Constructor that allows specification of the target number of words in the * output. * * @param wordsToKeep the number of words in the output vector (per class if * assigned). */ public StringToWordVector(int wordsToKeep) { m_dictionaryBuilder.setWordsToKeep(wordsToKeep); }
/** * Sets the number of words (per class if there is a class attribute assigned) * to attempt to keep. * * @param newWordsToKeep the target number of words in the output vector (per * class if assigned). */ public void setWordsToKeep(int newWordsToKeep) { m_dictionaryBuilder.setWordsToKeep(newWordsToKeep); }
/** * Sets the number of words (per class if there is a class attribute assigned) * to attempt to keep. * * @param newWordsToKeep the target number of words in the output vector (per * class if assigned). */ public void setWordsToKeep(int newWordsToKeep) { m_dictionaryBuilder.setWordsToKeep(newWordsToKeep); }
/** * Constructor that allows specification of the target number of words in the * output. * * @param wordsToKeep the number of words in the output vector (per class if * assigned). */ public StringToWordVector(int wordsToKeep) { m_dictionaryBuilder.setWordsToKeep(wordsToKeep); }
/** * Sets the number of words (per class if there is a class attribute assigned) * to attempt to keep. * * @param newWordsToKeep the target number of words in the output vector (per * class if assigned). */ @OptionMetadata( displayName = "Number of words to attempt to keep", description = "The number of words (per class if there is a class attribute " + "assigned) to attempt to keep.", commandLineParamName = "W", commandLineParamSynopsis = "-W <integer>", displayOrder = 15) public void setWordsToKeep(int newWordsToKeep) { m_dictionaryBuilder.setWordsToKeep(newWordsToKeep); }
/** * Sets the number of words (per class if there is a class attribute assigned) * to attempt to keep. * * @param newWordsToKeep the target number of words in the output vector (per * class if assigned). */ @OptionMetadata( displayName = "Number of words to attempt to keep", description = "The number of words (per class if there is a class attribute " + "assigned) to attempt to keep.", commandLineParamName = "W", commandLineParamSynopsis = "-W <integer>", displayOrder = 15) public void setWordsToKeep(int newWordsToKeep) { m_dictionaryBuilder.setWordsToKeep(newWordsToKeep); }
setWordsToKeep(Integer.valueOf(value).intValue()); } else { setWordsToKeep(1000);
setWordsToKeep(Integer.valueOf(value).intValue()); } else { setWordsToKeep(1000);