[addresses] Adding more numeric/numeric_affix probabilities to English config
This commit is contained in:
@@ -631,33 +631,58 @@ directions:
|
|||||||
abbreviated: r
|
abbreviated: r
|
||||||
canonical_probability: 0.7
|
canonical_probability: 0.7
|
||||||
abbreviated_probability: 0.3
|
abbreviated_probability: 0.3
|
||||||
|
numeric:
|
||||||
|
direction: right
|
||||||
numeric_affix:
|
numeric_affix:
|
||||||
affix: r
|
affix: r
|
||||||
direction: right
|
direction: right
|
||||||
|
numeric_probability: 0.2
|
||||||
|
numeric_affix_probability: 0.8
|
||||||
left: &left
|
left: &left
|
||||||
canonical: left
|
canonical: left
|
||||||
abbreviated: l
|
abbreviated: l
|
||||||
canonical_probability: 0.7
|
canonical_probability: 0.7
|
||||||
abbreviated_probability: 0.3
|
abbreviated_probability: 0.3
|
||||||
|
numeric:
|
||||||
|
direction: right
|
||||||
numeric_affix:
|
numeric_affix:
|
||||||
affix: l
|
affix: l
|
||||||
direction: right
|
direction: right
|
||||||
|
numeric_probability: 0.2
|
||||||
|
numeric_affix_probability: 0.8
|
||||||
rear: &rear
|
rear: &rear
|
||||||
canonical: rear
|
canonical: rear
|
||||||
abbreviated: r
|
abbreviated: r
|
||||||
canonical_probability: 0.8
|
canonical_probability: 0.8
|
||||||
abbreviated_probability: 0.2
|
abbreviated_probability: 0.2
|
||||||
|
numeric:
|
||||||
|
direction: right
|
||||||
numeric_affix:
|
numeric_affix:
|
||||||
affix: r
|
affix: r
|
||||||
direction: right
|
direction: right
|
||||||
|
numeric_probability: 0.2
|
||||||
|
numeric_affix_probability: 0.8
|
||||||
front: &front
|
front: &front
|
||||||
canonical: front
|
canonical: front
|
||||||
abbreviated: frnt
|
abbreviated: frnt
|
||||||
canonical_probability: 0.8
|
canonical_probability: 0.8
|
||||||
abbreviated_probability: 0.2
|
abbreviated_probability: 0.2
|
||||||
|
numeric:
|
||||||
|
direction: right
|
||||||
numeric_affix:
|
numeric_affix:
|
||||||
affix: f
|
affix: f
|
||||||
direction: right
|
direction: right
|
||||||
|
numeric_probability: 0.2
|
||||||
|
numeric_affix_probability: 0.8
|
||||||
|
alternatives:
|
||||||
|
- alternative: *right
|
||||||
|
probability: 0.45
|
||||||
|
- alternative: *left
|
||||||
|
probability: 0.45
|
||||||
|
- alternative: *front
|
||||||
|
probability: 0.05
|
||||||
|
- alternative: *rear
|
||||||
|
probability: 0.05
|
||||||
|
|
||||||
cardinal_directions:
|
cardinal_directions:
|
||||||
east: &east
|
east: &east
|
||||||
@@ -667,9 +692,13 @@ cardinal_directions:
|
|||||||
canonical_probability: 0.5
|
canonical_probability: 0.5
|
||||||
abbreviated_probability: 0.3
|
abbreviated_probability: 0.3
|
||||||
sample_probability: 0.2
|
sample_probability: 0.2
|
||||||
|
numeric:
|
||||||
|
direction: right
|
||||||
numeric_affix:
|
numeric_affix:
|
||||||
affix: e
|
affix: e
|
||||||
direction: right
|
direction: right
|
||||||
|
numeric_probability: 0.6
|
||||||
|
numeric_affix_probability: 0.4
|
||||||
west: &west
|
west: &west
|
||||||
canonical: west
|
canonical: west
|
||||||
abbreviated: w
|
abbreviated: w
|
||||||
@@ -677,9 +706,13 @@ cardinal_directions:
|
|||||||
canonical_probability: 0.5
|
canonical_probability: 0.5
|
||||||
abbreviated_probability: 0.3
|
abbreviated_probability: 0.3
|
||||||
sample_probability: 0.2
|
sample_probability: 0.2
|
||||||
|
numeric:
|
||||||
|
direction: right
|
||||||
numeric_affix:
|
numeric_affix:
|
||||||
affix: w
|
affix: w
|
||||||
direction: right
|
direction: right
|
||||||
|
numeric_probability: 0.6
|
||||||
|
numeric_affix_probability: 0.4
|
||||||
north: &north
|
north: &north
|
||||||
canonical: north
|
canonical: north
|
||||||
abbreviated: n
|
abbreviated: n
|
||||||
@@ -687,9 +720,13 @@ cardinal_directions:
|
|||||||
canonical_probability: 0.5
|
canonical_probability: 0.5
|
||||||
abbreviated_probability: 0.3
|
abbreviated_probability: 0.3
|
||||||
sample_probability: 0.2
|
sample_probability: 0.2
|
||||||
|
numeric:
|
||||||
|
direction: right
|
||||||
numeric_affix:
|
numeric_affix:
|
||||||
affix: n
|
affix: n
|
||||||
direction: right
|
direction: right
|
||||||
|
numeric_probability: 0.6
|
||||||
|
numeric_affix_probability: 0.4
|
||||||
south: &south
|
south: &south
|
||||||
canonical: south
|
canonical: south
|
||||||
abbreviated: s
|
abbreviated: s
|
||||||
@@ -697,9 +734,23 @@ cardinal_directions:
|
|||||||
canonical_probability: 0.5
|
canonical_probability: 0.5
|
||||||
abbreviated_probability: 0.3
|
abbreviated_probability: 0.3
|
||||||
sample_probability: 0.2
|
sample_probability: 0.2
|
||||||
|
numeric:
|
||||||
|
direction: right
|
||||||
numeric_affix:
|
numeric_affix:
|
||||||
affix: s
|
affix: s
|
||||||
direction: right
|
direction: right
|
||||||
|
numeric_probability: 0.6
|
||||||
|
numeric_affix_probability: 0.4
|
||||||
|
|
||||||
|
alternatives:
|
||||||
|
- alternative: *north
|
||||||
|
probability: 0.25
|
||||||
|
- alternative: *east
|
||||||
|
probability: 0.25
|
||||||
|
- alternative: *south
|
||||||
|
probability: 0.25
|
||||||
|
- alternative: *west
|
||||||
|
probability: 0.25
|
||||||
|
|
||||||
# Entrance
|
# Entrance
|
||||||
# ========
|
# ========
|
||||||
@@ -819,6 +870,8 @@ units:
|
|||||||
abbreviated: stes
|
abbreviated: stes
|
||||||
canonical_probability: 0.6
|
canonical_probability: 0.6
|
||||||
abbreviated_probability: 0.4
|
abbreviated_probability: 0.4
|
||||||
|
numeric:
|
||||||
|
direction: left
|
||||||
# Suite #101 and Suite No. 101 as opposed to Suite 101
|
# Suite #101 and Suite No. 101 as opposed to Suite 101
|
||||||
add_number_phrase: true
|
add_number_phrase: true
|
||||||
add_number_phrase_probability: 0.5
|
add_number_phrase_probability: 0.5
|
||||||
@@ -831,6 +884,10 @@ units:
|
|||||||
sample_probability: 0.2
|
sample_probability: 0.2
|
||||||
plural:
|
plural:
|
||||||
canonical: penthouses
|
canonical: penthouses
|
||||||
|
numeric:
|
||||||
|
direction: left
|
||||||
|
numeric_probability: 0.2
|
||||||
|
standalone_probability: 0.8
|
||||||
# Penthouse #1 and Penthouse No. 1
|
# Penthouse #1 and Penthouse No. 1
|
||||||
add_number_phrase: true
|
add_number_phrase: true
|
||||||
add_number_phrase_probability: 0.2
|
add_number_phrase_probability: 0.2
|
||||||
@@ -874,6 +931,8 @@ units:
|
|||||||
abbreviated: ofcs
|
abbreviated: ofcs
|
||||||
canonical_probability: 0.4
|
canonical_probability: 0.4
|
||||||
abbreviated_probability: 0.6
|
abbreviated_probability: 0.6
|
||||||
|
numeric:
|
||||||
|
direction: left
|
||||||
# Office #1 and Office No. 1
|
# Office #1 and Office No. 1
|
||||||
add_number_phrase: true
|
add_number_phrase: true
|
||||||
add_number_phrase_probability: 0.7
|
add_number_phrase_probability: 0.7
|
||||||
@@ -884,6 +943,8 @@ units:
|
|||||||
sample_probability: 0.2
|
sample_probability: 0.2
|
||||||
plural:
|
plural:
|
||||||
canonical: doors
|
canonical: doors
|
||||||
|
numeric:
|
||||||
|
direction: left
|
||||||
# Door #1 and Door No. 1
|
# Door #1 and Door No. 1
|
||||||
add_number_phrase: true
|
add_number_phrase: true
|
||||||
add_number_phrase_probability: 0.2
|
add_number_phrase_probability: 0.2
|
||||||
@@ -898,6 +959,8 @@ units:
|
|||||||
abbreviated: rms
|
abbreviated: rms
|
||||||
canonical_probability: 0.6
|
canonical_probability: 0.6
|
||||||
abbreviated_probability: 0.4
|
abbreviated_probability: 0.4
|
||||||
|
numeric:
|
||||||
|
direction: left
|
||||||
# Room #1 and Room No. 1
|
# Room #1 and Room No. 1
|
||||||
add_number_phrase: true
|
add_number_phrase: true
|
||||||
add_number_phrase_probability: 0.6
|
add_number_phrase_probability: 0.6
|
||||||
@@ -905,6 +968,11 @@ units:
|
|||||||
canonical: hall
|
canonical: hall
|
||||||
plural:
|
plural:
|
||||||
canonical: halls
|
canonical: halls
|
||||||
|
numeric:
|
||||||
|
direction: left
|
||||||
|
# Room #1 and Room No. 1
|
||||||
|
add_number_phrase: true
|
||||||
|
add_number_phrase_probability: 0.6
|
||||||
apartment: &apartment
|
apartment: &apartment
|
||||||
canonical: apartment
|
canonical: apartment
|
||||||
abbreviated: apt
|
abbreviated: apt
|
||||||
@@ -918,6 +986,8 @@ units:
|
|||||||
abbreviated: apts
|
abbreviated: apts
|
||||||
canonical_probability: 0.2
|
canonical_probability: 0.2
|
||||||
abbreviated: 0.8
|
abbreviated: 0.8
|
||||||
|
numeric:
|
||||||
|
direction: left
|
||||||
# Apt #1 and Apt No. 1
|
# Apt #1 and Apt No. 1
|
||||||
add_number_phrase: true
|
add_number_phrase: true
|
||||||
add_number_phrase_probability: 0.4
|
add_number_phrase_probability: 0.4
|
||||||
@@ -926,13 +996,15 @@ units:
|
|||||||
abbreviated: flt
|
abbreviated: flt
|
||||||
sample: true
|
sample: true
|
||||||
canonical_probability: 0.8
|
canonical_probability: 0.8
|
||||||
abbreviated_probability: 0.1
|
abbreviated_probability: 0.15
|
||||||
sample_probability: 0.1
|
sample_probability: 0.05
|
||||||
plural:
|
plural:
|
||||||
canonical: flats
|
canonical: flats
|
||||||
abbreviated: flts
|
abbreviated: flts
|
||||||
canonical_probability: 0.6
|
canonical_probability: 0.8
|
||||||
abbreviated_probability: 0.4
|
abbreviated_probability: 0.2
|
||||||
|
numeric:
|
||||||
|
direction: left
|
||||||
# Flat #1 and Flat No. 1
|
# Flat #1 and Flat No. 1
|
||||||
add_number_phrase: true
|
add_number_phrase: true
|
||||||
add_number_phrase_probability: 0.4
|
add_number_phrase_probability: 0.4
|
||||||
@@ -943,16 +1015,20 @@ units:
|
|||||||
sample_probability: 0.1
|
sample_probability: 0.1
|
||||||
plural:
|
plural:
|
||||||
canonical: lots
|
canonical: lots
|
||||||
|
numeric:
|
||||||
|
direction: left
|
||||||
# Lot #1 and Lot No. 1
|
# Lot #1 and Lot No. 1
|
||||||
add_number_phrase: true
|
add_number_phrase: true
|
||||||
add_number_phrase_probability: 0.6
|
add_number_phrase_probability: 0.6
|
||||||
parcel: &parcel
|
parcel: &parcel
|
||||||
canonical: parcel
|
canonical: parcel
|
||||||
canonical_probability: 0.9
|
|
||||||
sample: true
|
sample: true
|
||||||
|
canonical_probability: 0.9
|
||||||
sample_probability: 0.1
|
sample_probability: 0.1
|
||||||
plural:
|
plural:
|
||||||
canonical: parcels
|
canonical: parcels
|
||||||
|
numeric:
|
||||||
|
direction: left
|
||||||
add_number_phrase: true
|
add_number_phrase: true
|
||||||
add_number_phrase_probability: 0.6
|
add_number_phrase_probability: 0.6
|
||||||
unit: &unit
|
unit: &unit
|
||||||
@@ -964,6 +1040,8 @@ units:
|
|||||||
sample_probability: 0.1
|
sample_probability: 0.1
|
||||||
plural:
|
plural:
|
||||||
canonical: units
|
canonical: units
|
||||||
|
numeric:
|
||||||
|
direction: left
|
||||||
# Unit #1 and Unit No. 1
|
# Unit #1 and Unit No. 1
|
||||||
add_number_phrase: true
|
add_number_phrase: true
|
||||||
add_number_phrase_probability: 0.4
|
add_number_phrase_probability: 0.4
|
||||||
@@ -1007,35 +1085,36 @@ units:
|
|||||||
probability: 0.2
|
probability: 0.2
|
||||||
industrial:
|
industrial:
|
||||||
default: *lot
|
default: *lot
|
||||||
probability: 0.7
|
probability: 0.5
|
||||||
alternatives:
|
alternatives:
|
||||||
- alternative: *suite
|
- alternative: *suite
|
||||||
probability: 0.15
|
probability: 0.3
|
||||||
- alternative: *unit
|
- alternative: *unit
|
||||||
probability: 0.1
|
probability: 0.19
|
||||||
- alternative: *parcel
|
- alternative: *parcel
|
||||||
alternatives: 0.05
|
probability: 0.01
|
||||||
university:
|
university:
|
||||||
default: *room
|
default: *room
|
||||||
probability: 0.9
|
probability: 0.9
|
||||||
alternatives:
|
alternatives:
|
||||||
- alternative: *hall
|
- alternative: *hall
|
||||||
probability: 0.1
|
probability: 0.1
|
||||||
allotments:
|
|
||||||
lot:
|
allotments:
|
||||||
default: *lot
|
lot:
|
||||||
numeric_probability: 0.8
|
default: *lot
|
||||||
alphanumeric_probability: 0.1
|
numeric_probability: 0.8
|
||||||
alpha_probability: 0.1
|
alphanumeric_probability: 0.1
|
||||||
parcel:
|
alpha_probability: 0.1
|
||||||
default: *parcel
|
parcel:
|
||||||
numeric_probability: 0.3
|
default: *parcel
|
||||||
alphanumeric_probability: 0.3
|
numeric_probability: 0.3
|
||||||
alpha_probability: 0.4
|
alphanumeric_probability: 0.3
|
||||||
lot_probability: 0.9
|
alpha_probability: 0.4
|
||||||
parcel_probability: 0.06
|
lot_probability: 0.9
|
||||||
lot_plus_parcel_probability: 0.02
|
parcel_probability: 0.06
|
||||||
parcel_plus_lot_probability: 0.02
|
lot_plus_parcel_probability: 0.02
|
||||||
|
parcel_plus_lot_probability: 0.02
|
||||||
|
|
||||||
directional:
|
directional:
|
||||||
modifier:
|
modifier:
|
||||||
@@ -1212,14 +1291,17 @@ countries:
|
|||||||
sample: true
|
sample: true
|
||||||
default: *flat
|
default: *flat
|
||||||
# Reduce the default's probability to make room for sampling
|
# Reduce the default's probability to make room for sampling
|
||||||
probability: 0.59
|
probability: 0.39
|
||||||
sample_probability: 0.01
|
sample_probability: 0.01
|
||||||
|
numeric:
|
||||||
|
direction: left
|
||||||
standalone:
|
standalone:
|
||||||
default: *penthouse
|
default: *penthouse
|
||||||
sample: true
|
sample: true
|
||||||
# Reduce the default's probability to make room for sampling
|
# Reduce the default's probability to make room for sampling
|
||||||
probability: 0.39
|
probability: 0.39
|
||||||
sample_probability: 0.01
|
sample_probability: 0.01
|
||||||
|
standalone_probability: 1.0
|
||||||
|
|
||||||
# For unit types like 2/34
|
# For unit types like 2/34
|
||||||
combined:
|
combined:
|
||||||
@@ -1240,3 +1322,5 @@ countries:
|
|||||||
nz:
|
nz:
|
||||||
po_boxes: *australia_po_boxes
|
po_boxes: *australia_po_boxes
|
||||||
units: *australia_unit_types
|
units: *australia_unit_types
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user