-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task/fr new spec dt #191
Merged
Merged
Task/fr new spec dt #191
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…r range for mid-day.
…y> to support 'entre 4H et le dîner' for example.
…', change name rule 'à <part-of-day>'.
JohannaSimoens
requested review from
adrienball,
francescocalta,
OdileDevismesSonos and
ClemDoum
July 30, 2019 10:15
adrienball
requested changes
Jul 30, 2019
@@ -1266,6 +1266,7 @@ pub fn rules_datetime_with_duration(b: &mut RuleSetBuilder<Dimension>) -> Rustli | |||
|
|||
} | |||
|
|||
// FIXME: rename "rules_datetime_with_cycle" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there anything blocking here?
OK got it, I guess that's fine then.
Le mar. 30 juil. 2019 à 5:28 PM, Rosa Stern <notifications@github.com> a
écrit :
***@***.**** commented on this pull request.
------------------------------
In grammar/fr/src/rules_amount.rs
<#191 (comment)>
:
> @@ -0,0 +1,243 @@
+use rustling::*;
+use rustling_ontology_values::dimension::*;
+use rustling_ontology_values::dimension::Precision::*;
+use rustling_ontology_values::helpers;
+
+pub fn rules_percentage(b: &mut RuleSetBuilder<Dimension>) -> RustlingResult<()> {
+ b.rule_2("<number> per cent",
+ number_check!(),
+ b.reg(r"(?:%|p\.c\.|p. cents?|pour[ -]?cents?)")?,
+ |number, _| Ok(PercentageValue(number.value().value()))
+ );
+ Ok(())
+}
Actually the "amount" rules and file were meant to group together amount
entities, i.e. money amounts, temperatures and percentages. Do you want to
have 3 separate files for each instead?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#191>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACUE3W34Q3AC5N5BNJLKCB3QCBMZHANCNFSM4IH2WDCQ>
.
--
*Adrien Ball*
Data Scientist
adrien.ball@snips.ai <rand.hindi@snips.ai>
+33 6 70 87 57 78
Twitter: @adrien_ball
Skype: adrien.ball
|
adrienball
approved these changes
Sep 2, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Improve coverage for French (new datetime subtypes)
Split file rules.rs in separate files per entity type (like in En)
Add moment and values utils to improve grammar (helpers)
Fixes related to subtypes date time (les n prochains mois/jours)
Add support for:
Improve coverage test metric
Coverage test success rate: Before 59% -> Now 75%
(Taking into account failed case that are false negatives (real ambiguity cases like "demain à 5h" -> 5h | 17h, or interpretation of ranges for parts of day that need to be set : Before 65% -> Now 81%)
NB: Branch derived from branch 'task/datime-fr-new-specs' which is itself derived from branch 'feature/datetime_subtypes' + is rebased onto 'task/split-grammar-files-entities-fr' (branch derived from develop (release 19.0) with rules files split per entity)