[numex] Adding numeric expression spellout in the Python geodata module for generating training data

This commit is contained in:
Al
2016-06-24 16:06:59 -04:00
parent cf2ed2b299
commit e2a9a57269
33 changed files with 1194 additions and 81 deletions

View File

@@ -1,5 +1,6 @@
---
whole_words_only: true
default_separator: ""
rules:
-
name: "zero"
@@ -10,6 +11,7 @@
value: 1
type: "cardinal"
gender: "m"
multiply_gte: 1000000
-
name: "uno"
value: 1
@@ -229,42 +231,53 @@
type: "cardinal"
left: "multiply"
right: "add"
exact_multiple_only: true
right_separator: " "
-
name: "milioni"
value: 1000000
type: "cardinal"
left: "multiply"
right: "add"
right_separator: " "
-
name: "miliardo"
value: 1000000000
type: "cardinal"
left: "multiply"
right: "add"
exact_multiple_only: true
right_separator: " "
-
name: "miliardi"
value: 1000000000
type: "cardinal"
left: "multiply"
right: "add"
right_separator: " "
-
name: "bilione"
value: 1000000000000
type: "cardinal"
left: "multiply"
right: "add"
exact_multiple_only: true
right_separator: " "
-
name: "bilioni"
value: 1000000000000
type: "cardinal"
left: "multiply"
right: "add"
right_separator: " "
-
name: "biliarde"
value: 1000000000000000
type: "cardinal"
left: "multiply"
right: "add"
exact_multiple_only: true
right_separator: " "
-
name: "biliardi"
value: 1000000000000000