nuance_QUANTITY
Defines values of magnitude. Can be relative (for example, “greater than nine”, < 100, “some”, “lots”) or absolute (for example, “ten”, 20). Note that QUANTITY_ABS does not have built-in grammars.
Note:
To use this predefined entity for cardinal numbers, you need to supply all the intermediate annotation levels in your training data (such asbuy[nuance_QUANTITY] [nuance_QUANTITY_ABS] [nuance_NUMBER] 4 [/] [/] [/] tickets
). An easier alternative is to use nuance_NUMBER directly (unless you need to cover relative quantities as well).
Sample language
- more than five
- a lot
- 10
- at least ten
- > 25
- minimum 16
Numeric value range
<= 99,999,999 (for nuance_QUANTITY_REL)
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"nuance_QUANTITY": {
"type": "object",
"properties": {
"oneOf": [{
"nuance_QUANTITY_ABS": {
"type": "object",
"properties": {
"nuance_NUMBER": {
"type": "number"
}
}
}
}, {
"nuance_QUANTITY_REL": {
"type": "object",
"properties": {
"nuance_MODIFIER": {
"type": "string",
"pattern": "[GT|LT|GE|LE|EQ|INC|NONE|SOME|LOTS]"
},
"nuance_QUANTITY_ABS": {
"type": "object",
"properties": {
"nuance_NUMBER": {
"type": "number"
}
}
}
},
"required": "nuance_MODIFIER"
}
}
]
}
}
},
"additionalProperties": false
}
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.