[dictionaries] Moving intersections to cross streets
This commit is contained in:
@@ -456,16 +456,28 @@ levels:
|
|||||||
# These simple rules make it possible to create training examples
|
# These simple rules make it possible to create training examples
|
||||||
# like: 26th/road Street/road and/intersection 6th/road Avenue/road
|
# like: 26th/road Street/road and/intersection 6th/road Avenue/road
|
||||||
|
|
||||||
intersections:
|
cross_streets:
|
||||||
# 26th & 6th Avenue
|
# 26th & 6th Avenue
|
||||||
and: *and
|
and: *and
|
||||||
# 26th @ Broadway
|
# 26th @ Broadway
|
||||||
at:
|
at: &at
|
||||||
canonical: at
|
canonical: at
|
||||||
abbreviated: "@"
|
abbreviated: "@"
|
||||||
canonical_probability: 0.7
|
canonical_probability: 0.7
|
||||||
abbreviated_probability: 0.3
|
abbreviated_probability: 0.3
|
||||||
sample: true
|
sample: true
|
||||||
|
corner_of:
|
||||||
|
canonical: corner of
|
||||||
|
|
||||||
|
intersection:
|
||||||
|
default: *and
|
||||||
|
probability: 0.7
|
||||||
|
alternatives:
|
||||||
|
- alternative: *at
|
||||||
|
probability: 0.15
|
||||||
|
- alternative: *corner_of
|
||||||
|
probability: 0.15
|
||||||
|
|
||||||
# 26th betw 5th Ave and 6th Ave
|
# 26th betw 5th Ave and 6th Ave
|
||||||
between:
|
between:
|
||||||
canonical: between
|
canonical: between
|
||||||
@@ -474,8 +486,6 @@ intersections:
|
|||||||
abbreviated_probability: 0.5
|
abbreviated_probability: 0.5
|
||||||
sample: true
|
sample: true
|
||||||
parentheses_probability: 0.5 # Probability of using parentheses e.g. (between 5th and 6th)
|
parentheses_probability: 0.5 # Probability of using parentheses e.g. (between 5th and 6th)
|
||||||
corner_of:
|
|
||||||
canonical: corner of
|
|
||||||
|
|
||||||
# PO Box addresses
|
# PO Box addresses
|
||||||
# ================
|
# ================
|
||||||
|
|||||||
@@ -72,12 +72,12 @@ gazetteer_types = {
|
|||||||
'concatenated_prefixes_separable': 'DICTIONARY_CONCATENATED_PREFIX_SEPARABLE',
|
'concatenated_prefixes_separable': 'DICTIONARY_CONCATENATED_PREFIX_SEPARABLE',
|
||||||
'concatenated_suffixes_inseparable': 'DICTIONARY_CONCATENATED_SUFFIX_INSEPARABLE',
|
'concatenated_suffixes_inseparable': 'DICTIONARY_CONCATENATED_SUFFIX_INSEPARABLE',
|
||||||
'concatenated_suffixes_separable': 'DICTIONARY_CONCATENATED_SUFFIX_SEPARABLE',
|
'concatenated_suffixes_separable': 'DICTIONARY_CONCATENATED_SUFFIX_SEPARABLE',
|
||||||
|
'cross_streets': 'DICTIONARY_CROSS_STREET',
|
||||||
'directionals': 'DICTIONARY_DIRECTIONAL',
|
'directionals': 'DICTIONARY_DIRECTIONAL',
|
||||||
'elisions': 'DICTIONARY_ELISION',
|
'elisions': 'DICTIONARY_ELISION',
|
||||||
'entrance': 'DICTIONARY_ENTRANCE',
|
'entrance': 'DICTIONARY_ENTRANCE',
|
||||||
'given_names': 'DICTIONARY_GIVEN_NAME',
|
'given_names': 'DICTIONARY_GIVEN_NAME',
|
||||||
'house_number': 'DICTIONARY_HOUSE_NUMBER',
|
'house_number': 'DICTIONARY_HOUSE_NUMBER',
|
||||||
'intersections': 'DICTIONARY_INTERSECTION',
|
|
||||||
'level_types_basement': 'DICTIONARY_LEVEL_BASEMENT',
|
'level_types_basement': 'DICTIONARY_LEVEL_BASEMENT',
|
||||||
'level_types_mezzanine': 'DICTIONARY_LEVEL_MEZZANINE',
|
'level_types_mezzanine': 'DICTIONARY_LEVEL_MEZZANINE',
|
||||||
'level_types_numbered': 'DICTIONARY_LEVEL_NUMBERED',
|
'level_types_numbered': 'DICTIONARY_LEVEL_NUMBERED',
|
||||||
|
|||||||
Reference in New Issue
Block a user