// Path: src/main/java/uk/ac/shef/dcs/oak/jate/JATEException.java
// public class JATEException extends Exception {
// 	private static final long serialVersionUID = -4511571544868986419L;
// 
// 	public JATEException(String exception){
// 		super(exception);
// 	}
// 
// 	public JATEException(Exception e){
// 		super(e);
// 	}
// 
// 	public JATEException(String exception, Throwable cause){
// 		super(exception, cause);
// 	}
// }


import uk.ac.shef.dcs.oak.jate.JATEException;
import uk.ac.shef.dcs.oak.jate.model.Term;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

package uk.ac.shef.dcs.oak.jate.core.algorithm;



/**
 * An implementation of the word weirdness algorithm applied to term recognition algorithm. See
 * Ahmad et al 1999, <i>Surrey Participation in TREC8: Weirdness Indexing for Logical Document Extrapolation
 * and Retrieval</i>
 *
 * @author <a href="mailto:z.zhang@dcs.shef.ac.uk">Ziqi Zhang</a>
 */



public class WeirdnessAlgorithm implements Algorithm {
	public Term[] execute(AbstractFeatureWrapper store) throws JATEException {

// Path: src/main/java/uk/ac/shef/dcs/oak/jate/JATEException.java
// public class JATEException extends Exception {
// 	private static final long serialVersionUID = -4511571544868986419L;
// 
// 	public JATEException(String exception){
// 		super(exception);
// 	}
// 
// 	public JATEException(Exception e){
// 		super(e);
// 	}
// 
// 	public JATEException(String exception, Throwable cause){
// 		super(exception, cause);
// 	}
// }


// Path: src/main/java/uk/ac/shef/dcs/oak/jate/core/algorithm/WeirdnessAlgorithm.java
import uk.ac.shef.dcs.oak.jate.JATEException;
import uk.ac.shef.dcs.oak.jate.model.Term;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

package uk.ac.shef.dcs.oak.jate.core.algorithm;



/**
 * An implementation of the word weirdness algorithm applied to term recognition algorithm. See
 * Ahmad et al 1999, <i>Surrey Participation in TREC8: Weirdness Indexing for Logical Document Extrapolation
 * and Retrieval</i>
 *
 * @author <a href="mailto:z.zhang@dcs.shef.ac.uk">Ziqi Zhang</a>
 */



public class WeirdnessAlgorithm implements Algorithm {
	public Term[] execute(AbstractFeatureWrapper store) throws JATEException {

		if (!(store instanceof WeirdnessFeatureWrapper)) throw new JATEException("" +
