Nothing Special   »   [go: up one dir, main page]

Skip to content
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

Allow store patterns in variables #64

Merged
merged 13 commits into from
Jun 18, 2020
Merged

Conversation

zaibacu
Copy link
Owner
@zaibacu zaibacu commented Jun 18, 2020

Resolves: #63

Adding possibility to reuse patterns, eg.:

ComplexNumber = {NUM+, WORD("/")?, NUM?}

{PATTERN(ComplexNumber), WORD("inches"), WORD("Height")}->MARK("HEIGHT")
{PATTERN(ComplexNumber), WORD("inches"), WORD("Width")}->MARK("WIDTH")

@codecov
Copy link
codecov bot commented Jun 18, 2020

Codecov Report

Merging #64 into master will increase coverage by 1.20%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #64      +/-   ##
==========================================
+ Coverage   91.74%   92.95%   +1.20%     
==========================================
  Files          11       11              
  Lines         618      610       -8     
  Branches      103      103              
==========================================
  Hits          567      567              
+ Misses         34       29       -5     
+ Partials       17       14       -3     
Impacted Files Coverage Δ
rita/parser.py 89.52% <ø> (-0.20%) ⬇️
rita/engine/translate_spacy.py 83.33% <100.00%> (ø)
rita/engine/translate_standalone.py 91.11% <100.00%> (ø)
rita/macros.py 96.96% <100.00%> (+9.31%) ⬆️
rita/preprocess.py 99.23% <100.00%> (+0.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c6c1600...82f7dc8. Read the comment docs.

@zaibacu zaibacu merged commit 215a119 into master Jun 18, 2020
@zaibacu zaibacu deleted the allow-store-patterns-in-variables branch June 18, 2020 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to define pattern as variable and use it in another pattern
1 participant