Revision 13833
Added by Aaron Marcuse-Kubitza over 10 years ago
tnrs.py | ||
---|---|---|
48 | 48 |
# taxonomic_constraint (Constrain by Higher Taxonomy): selects lower ranks |
49 | 49 |
# only from within the matched higher ranks. must be turned on, to ensure |
50 | 50 |
# that higher ranks are always authoritative. |
51 |
# source_sorting (Constrain by Source): always selects a match from the |
|
52 |
# first source in the list, no matter how low the match score. must be |
|
53 |
# turned off, to avoid worse matches being selected instead of better ones. |
|
54 |
# *however*, since this is currently broken and always on, we turn it on so |
|
55 |
# that the download settings reflect what TNRS actually used. |
|
51 |
# source_sorting (Constrain by Source): |
|
52 |
# has different behavior depending on the match mode: |
|
53 |
# - in all-matches mode (`"mode":"All"` @ download_request_template): |
|
54 |
# always puts matches in the order of the sources. although the 1st match |
|
55 |
# won't necessarily be the best one, the 1st match *with Selected=true* |
|
56 |
# will be (according to the source sort order). must be turned on, so |
|
57 |
# that the selected matches are sorted by source. |
|
58 |
# - in best-match mode (`"mode":"Best"` @ download_request_template): |
|
59 |
# always selects a match from the first source in the list, no matter how |
|
60 |
# low the match score. must be turned *off* (unlike in all-matches mode), |
|
61 |
# to avoid worse matches being selected instead of better ones. |
|
62 |
# *however*, since this is currently broken and always on, we turn it on |
|
63 |
# so that the download settings reflect what TNRS actually used. |
|
56 | 64 |
retrieval_response_pattern = '^//OK\[.*?\["com.extjs.gxt.ui.client.data.\ |
57 | 65 |
BasePagingLoadResult/496878394","java.util.ArrayList/4159755760","org.iplantc.\ |
58 | 66 |
tnrs.demo.shared.BeanTNRSEntry/1039545748",".*"\],0,7\]$' |
Also available in: Unified diff
lib/tnrs.py: source_sorting (Constrain by Source): documented the different behavior for this in each match mode (all-matches and best-match)