// 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.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.HashSet;
import java.util.Arrays;
				{
					freq = wordfreq.get(word)+1;
					wordfreq.remove(word);
					wordfreq.put(word, freq);
				}
				
				if( ! worddegree.containsKey(word) )
					worddegree.put(word, wordlistdegree);
				else
				{
					int deg = worddegree.get(word)+wordlistdegree;
					worddegree.remove(word);
					worddegree.put(word, deg);
				}
				
			}			
				
		}
		
		for(Map.Entry<String, Integer> entry : worddegree.entrySet()){
			entry.setValue(entry.getValue()+ wordfreq.get(entry.getKey()));
		}
		
		for(Map.Entry<String, Integer> entry : wordfreq.entrySet()){
			wordscore.put(entry.getKey(), worddegree.get(entry.getKey())/(wordfreq.get(entry.getKey())*1.0));
		}
		return wordscore;				
	}
	
	
// 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/RAKEAlgorithm.java
import uk.ac.shef.dcs.oak.jate.JATEException;
import uk.ac.shef.dcs.oak.jate.model.Term;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.HashSet;
import java.util.Arrays;

				{
					freq = wordfreq.get(word)+1;
					wordfreq.remove(word);
					wordfreq.put(word, freq);
				}
				
				if( ! worddegree.containsKey(word) )
					worddegree.put(word, wordlistdegree);
				else
				{
					int deg = worddegree.get(word)+wordlistdegree;
					worddegree.remove(word);
					worddegree.put(word, deg);
				}
				
			}			
				
		}
		
		for(Map.Entry<String, Integer> entry : worddegree.entrySet()){
			entry.setValue(entry.getValue()+ wordfreq.get(entry.getKey()));
		}
		
		for(Map.Entry<String, Integer> entry : wordfreq.entrySet()){
			wordscore.put(entry.getKey(), worddegree.get(entry.getKey())/(wordfreq.get(entry.getKey())*1.0));
		}
		return wordscore;				
	}
	
	
	public Term[] execute(AbstractFeatureWrapper store)throws JATEException {