public class ConcretenessScorer extends Object
Value ranges from 1--5 where 5 is most concrete
Modifier and Type | Field and Description |
---|---|
static String |
FILE |
static HashMap<String,Double> |
ratingMap |
Constructor and Description |
---|
ConcretenessScorer() |
Modifier and Type | Method and Description |
---|---|
static double |
getRating(String word)
Returns the concreteness rating for a given word.
|
public static final String FILE
public static double getRating(String word) throws IOException, URISyntaxException
word
- The word to be scoredFileNotFoundException
IOException
URISyntaxException
Copyright © 2017. All rights reserved.