forked from bst-mug/trec-2017-precision-medicine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Negative keyword boosting (bst-mug#130)
- Adds experiment with negative keyword boosting - Updates KeywordExperimenter to test strings from a manually generated file. - As it improves NDCG from 0.7728 to 0.79, enables it by default. - This fixes bst-mug#130.
- Loading branch information
Michel Oleynik
committed
Jul 31, 2017
1 parent
9ebf19e
commit df3e9ba
Showing
5 changed files
with
125 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,7 +79,8 @@ | |
"abstract" | ||
], | ||
"tie_breaker": 0.3, | ||
"type": "best_fields" | ||
"type": "best_fields", | ||
"boost": -1 | ||
} | ||
} | ||
} | ||
|
116 changes: 116 additions & 0 deletions
116
src/main/resources/templates/negative-boost-keywords.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"bool": { | ||
"must": [ | ||
{ | ||
"multi_match": { | ||
"query": "{{disease}}", | ||
"fields": [ | ||
"title^2", | ||
"abstract", | ||
"keyword", | ||
"meshTags" | ||
], | ||
"tie_breaker": 0.3, | ||
"type": "best_fields", | ||
"boost": 1 | ||
} | ||
}, | ||
{ | ||
"multi_match": { | ||
"query": "{{gene}}", | ||
"fields": [ | ||
"title^2", | ||
"abstract", | ||
"keyword", | ||
"meshTags" | ||
], | ||
"tie_breaker": 0.3, | ||
"type": "best_fields" | ||
} | ||
} | ||
], | ||
"should": [ | ||
{ | ||
"match": { | ||
"_type": "extra" | ||
} | ||
}, | ||
{ | ||
"query_string": { | ||
"query": "*mab *nib *cin *one *ate *mus *lin", | ||
"fields": [ | ||
"title^2", | ||
"abstract", | ||
"keyword", | ||
"meshTags" | ||
] | ||
} | ||
}, | ||
{ | ||
"bool": { | ||
"should": { | ||
"multi_match": { | ||
"query": "cancer carcinoma tumor", | ||
"fields": [ | ||
"title^2", | ||
"abstract", | ||
"keyword", | ||
"meshTags" | ||
], | ||
"tie_breaker": 0.3, | ||
"type": "best_fields" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"bool": { | ||
"should": { | ||
"multi_match": { | ||
"query": "gene genotype DNA base", | ||
"fields": [ | ||
"title^2", | ||
"abstract", | ||
"keyword", | ||
"meshTags" | ||
], | ||
"tie_breaker": 0.3, | ||
"type": "best_fields" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"bool": { | ||
"should": { | ||
"multi_match": { | ||
"query": "therapy treatment prognosis prognostic survival patient resistance recurrence targets malignancy study therapeutical outcome", | ||
"fields": [ | ||
"title^2", | ||
"abstract" | ||
], | ||
"tie_breaker": 0.3, | ||
"type": "best_fields" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"bool": { | ||
"should": { | ||
"multi_match": { | ||
"query": "transcript paraffin tumorigenesis embedded formalin fish tissue probes detection screening", | ||
"fields": [ | ||
"title^2", | ||
"abstract" | ||
], | ||
"tie_breaker": 0.3, | ||
"type": "best_fields", | ||
"boost": -1 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} |