codemining.util.SettingsLoader Java Examples

The following examples show how to use codemining.util.SettingsLoader. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BaseIdentifierRenamings.java    From naturalize with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
/**
 * 
 */
public BaseIdentifierRenamings(final ITokenizer tokenizer) {
	super();
	this.tokenizer = tokenizer;
	try {
		smoothedNgramClass = (Class<? extends AbstractNGramLM>) Class
				.forName(SettingsLoader.getStringSetting(
						"ngramSmootherClass",
						"codemining.lm.ngram.smoothing.StupidBackoff"));
	} catch (final ClassNotFoundException e) {
		LOGGER.severe(ExceptionUtils.getFullStackTrace(e));
		throw new IllegalArgumentException(e);
	}
}
 
Example #2
Source File: FormattingRenamings.java    From naturalize with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
public FormattingRenamings(final IFormattingTokenizer tokenizer) {
	this.tokenizer = tokenizer;
	try {
		smoothedNgramClass = (Class<? extends AbstractNGramLM>) Class
				.forName(SettingsLoader.getStringSetting(
						"ngramSmootherClass",
						"codemining.lm.ngram.smoothing.StupidBackoff"));
	} catch (final ClassNotFoundException e) {
		LOGGER.severe(ExceptionUtils.getFullStackTrace(e));
		throw new IllegalArgumentException(e);
	}
}