Lines Matching defs:keyword

90             String keyword = pluralRules.select(s);
91 addRelation(foundKeywords, keyword, s);
104 System.out.println("Failed to find sample for each keyword: " + foundKeywords + "\n\t" + pluralRules + "\n\t" + mentioned);
113 String keyword = pluralRules.select(s);
114 Set<FixedDecimal> list = sampleFractionMap.get(keyword);
117 sampleFractionMap.put(keyword, list);
147 String keyword = pluralRules.select(val);
148 boolean keyIsLimited = _keyLimitedMap.get(keyword);
150 List<Double> list = sampleMap.get(keyword);
153 sampleMap.put(keyword, list);
165 private void addRelation(Map<String, Set<FixedDecimal>> foundKeywords, String keyword, FixedDecimal s) {
166 Set<FixedDecimal> set = foundKeywords.get(keyword);
168 foundKeywords.put(keyword, set = new HashSet<FixedDecimal>());
175 String keyword = pluralRules.select(numberInfo);
176 if (!foundKeywords.containsKey(keyword) || keyword.equals("other")) {
177 addRelation(foundKeywords, keyword, numberInfo);
179 if (keyword.equals("other")) {
205 String keyword = pluralRules.select(base);
206 if (keywords.contains(keyword)) {
209 keywords.add(keyword);
212 Integer fract = getDifferentCategory(ints, keyword);
231 private Integer getDifferentCategory(List<Integer> ints, String keyword) {
235 if (!keywordOther.equals(keyword)) {
247 public KeywordStatus getStatus(String keyword, int offset, Set<Double> explicits, Output<Double> uniqueValue) {
252 if (!pluralRules.getKeywords().contains(keyword)) {
255 Collection<Double> values = pluralRules.getAllKeywordValues(keyword);
307 * Returns all the values that trigger this keyword, or null if the number of such
310 * @param keyword the keyword
311 * @return the values that trigger this keyword, or null. The returned collection
312 * is immutable. It will be empty if the keyword is not defined.
315 Collection<Double> getAllKeywordValues(String keyword) {
317 if (!pluralRules.getKeywords().contains(keyword)) {
320 Collection<Double> result = getKeySamplesMap().get(keyword);
328 if (result.size() > 2 && !_keyLimitedMap.get(keyword)) {