Annotation not matching if sentence has anything after the patternreferencing issue with rule that has multiple elements matching the same annotation typeUIMA RUTA: How to check properties of non-matched feature annotation objectsWhat do the numbers in NEAR Condition signify in ruta script?UIMA Ruta Only annotate longest matchNeed to match the annotation feature-UIMA RUTAType “Sentence” not defined in this script/block in UIMA RutaUIMA RUTA - AnnotationPatterns not recognized after executing EXEC actionHow to get substring in a matched annotated expression UIMA RUTA?Reset a local ANNOTATION variable?
How do I tell the reader that my character is autistic in Fantasy?
What does the phrase "building hopping chop" mean here?
Most important new papers in computational complexity
Using Raspberry Pi to flash its own SD card
Why was Mal so quick to drop Bester in favour of Kaylee?
Prime parity peregrination
Donkey as Democratic Party symbolic animal
How hard is it to sell a home which is currently mortgaged?
cannot execute script while its permission is 'x'
Who voices the character "Finger" in The Fifth Element?
Was it really unprofessional of me to leave without asking for a raise first?
Balanced parentheses using STL C++
Could the Q destroy the universe?
How did researchers find articles before the Internet and the computer era?
Can someone break into a Leomund's Tiny Hut via the Ethereal Plane?
The Confused Alien
Are these intended activities legal to do in the USA under the VWP?
Should I share with a new service provider a bill from its competitor?
Most elegant way to write a one shot IF
What could a reptilian race tell by candling their eggs?
I hit a pipe with a mower and now it won't turn
Does a return economy-class seat between London and San Francisco release 5.28 t of CO2e?
Picking balls from urns.
What's the safest way to inform a new user of their password on an invite-only website?
Annotation not matching if sentence has anything after the pattern
referencing issue with rule that has multiple elements matching the same annotation typeUIMA RUTA: How to check properties of non-matched feature annotation objectsWhat do the numbers in NEAR Condition signify in ruta script?UIMA Ruta Only annotate longest matchNeed to match the annotation feature-UIMA RUTAType “Sentence” not defined in this script/block in UIMA RutaUIMA RUTA - AnnotationPatterns not recognized after executing EXEC actionHow to get substring in a matched annotated expression UIMA RUTA?Reset a local ANNOTATION variable?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am trying to extract the below bolded number(AN A348645 PL) through RUTA script. Please look into example I provided:
Below is my code:
Document->RETAINTYPE(SPACE);
((W|NUM) (NUM|W|SPACE|SPECIAL)*)REGEXP("([1]0,1[A-Z0-9]2[\s ;
1)
Input: Claims Experience Report - AN A348645 PLB Nest Holdings Pty Ltd
Expected output: AN A348645 PLB
Original output: No Entity is matched
But, it is working when there is no word/ letter after the pattern:
2)
Input: Claims Experience Report - AN A348645 PLB
Expected Output: AN A348645 PLB
Original output: AN A348645 PLB
uima ruta
add a comment |
I am trying to extract the below bolded number(AN A348645 PL) through RUTA script. Please look into example I provided:
Below is my code:
Document->RETAINTYPE(SPACE);
((W|NUM) (NUM|W|SPACE|SPECIAL)*)REGEXP("([1]0,1[A-Z0-9]2[\s ;
1)
Input: Claims Experience Report - AN A348645 PLB Nest Holdings Pty Ltd
Expected output: AN A348645 PLB
Original output: No Entity is matched
But, it is working when there is no word/ letter after the pattern:
2)
Input: Claims Experience Report - AN A348645 PLB
Expected Output: AN A348645 PLB
Original output: AN A348645 PLB
uima ruta
add a comment |
I am trying to extract the below bolded number(AN A348645 PL) through RUTA script. Please look into example I provided:
Below is my code:
Document->RETAINTYPE(SPACE);
((W|NUM) (NUM|W|SPACE|SPECIAL)*)REGEXP("([1]0,1[A-Z0-9]2[\s ;
1)
Input: Claims Experience Report - AN A348645 PLB Nest Holdings Pty Ltd
Expected output: AN A348645 PLB
Original output: No Entity is matched
But, it is working when there is no word/ letter after the pattern:
2)
Input: Claims Experience Report - AN A348645 PLB
Expected Output: AN A348645 PLB
Original output: AN A348645 PLB
uima ruta
I am trying to extract the below bolded number(AN A348645 PL) through RUTA script. Please look into example I provided:
Below is my code:
Document->RETAINTYPE(SPACE);
((W|NUM) (NUM|W|SPACE|SPECIAL)*)REGEXP("([1]0,1[A-Z0-9]2[\s ;
1)
Input: Claims Experience Report - AN A348645 PLB Nest Holdings Pty Ltd
Expected output: AN A348645 PLB
Original output: No Entity is matched
But, it is working when there is no word/ letter after the pattern:
2)
Input: Claims Experience Report - AN A348645 PLB
Expected Output: AN A348645 PLB
Original output: AN A348645 PLB
uima ruta
uima ruta
edited Mar 25 at 13:32
Daria Pydorenko
1,0642 gold badges5 silver badges33 bronze badges
1,0642 gold badges5 silver badges33 bronze badges
asked Mar 25 at 13:20
Vamsi UniqueVamsi Unique
85 bronze badges
85 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
In this example
AN A348645 PLB Nest Holdings Pty Ltd
the Star Greedy Quantifier *, looks for the next annotations after PLB and tries to match them using the given regexp pattern. Therefore, the rule fires only when there are no next tokens to try to match on.
Try to apply the regular expression pattern in Ruta just as it is:
"([1]0,1[A-Z0-9]2[\s ||-]0,2[A-Z0-9]7[\s ||-]0,2[A-Z]3)"->EntityType;
Wow..thanks mate..that worked really good! Never expected that RUTA will accept direct REGEX
– Vamsi Unique
Apr 2 at 14:16
Good. Consider marking it as a solution please.
– user3711889
Apr 2 at 15:13
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55338759%2fannotation-not-matching-if-sentence-has-anything-after-the-pattern%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
In this example
AN A348645 PLB Nest Holdings Pty Ltd
the Star Greedy Quantifier *, looks for the next annotations after PLB and tries to match them using the given regexp pattern. Therefore, the rule fires only when there are no next tokens to try to match on.
Try to apply the regular expression pattern in Ruta just as it is:
"([1]0,1[A-Z0-9]2[\s ||-]0,2[A-Z0-9]7[\s ||-]0,2[A-Z]3)"->EntityType;
Wow..thanks mate..that worked really good! Never expected that RUTA will accept direct REGEX
– Vamsi Unique
Apr 2 at 14:16
Good. Consider marking it as a solution please.
– user3711889
Apr 2 at 15:13
add a comment |
In this example
AN A348645 PLB Nest Holdings Pty Ltd
the Star Greedy Quantifier *, looks for the next annotations after PLB and tries to match them using the given regexp pattern. Therefore, the rule fires only when there are no next tokens to try to match on.
Try to apply the regular expression pattern in Ruta just as it is:
"([1]0,1[A-Z0-9]2[\s ||-]0,2[A-Z0-9]7[\s ||-]0,2[A-Z]3)"->EntityType;
Wow..thanks mate..that worked really good! Never expected that RUTA will accept direct REGEX
– Vamsi Unique
Apr 2 at 14:16
Good. Consider marking it as a solution please.
– user3711889
Apr 2 at 15:13
add a comment |
In this example
AN A348645 PLB Nest Holdings Pty Ltd
the Star Greedy Quantifier *, looks for the next annotations after PLB and tries to match them using the given regexp pattern. Therefore, the rule fires only when there are no next tokens to try to match on.
Try to apply the regular expression pattern in Ruta just as it is:
"([1]0,1[A-Z0-9]2[\s ||-]0,2[A-Z0-9]7[\s ||-]0,2[A-Z]3)"->EntityType;
In this example
AN A348645 PLB Nest Holdings Pty Ltd
the Star Greedy Quantifier *, looks for the next annotations after PLB and tries to match them using the given regexp pattern. Therefore, the rule fires only when there are no next tokens to try to match on.
Try to apply the regular expression pattern in Ruta just as it is:
"([1]0,1[A-Z0-9]2[\s ||-]0,2[A-Z0-9]7[\s ||-]0,2[A-Z]3)"->EntityType;
answered Apr 1 at 11:47
user3711889user3711889
1127 bronze badges
1127 bronze badges
Wow..thanks mate..that worked really good! Never expected that RUTA will accept direct REGEX
– Vamsi Unique
Apr 2 at 14:16
Good. Consider marking it as a solution please.
– user3711889
Apr 2 at 15:13
add a comment |
Wow..thanks mate..that worked really good! Never expected that RUTA will accept direct REGEX
– Vamsi Unique
Apr 2 at 14:16
Good. Consider marking it as a solution please.
– user3711889
Apr 2 at 15:13
Wow..thanks mate..that worked really good! Never expected that RUTA will accept direct REGEX
– Vamsi Unique
Apr 2 at 14:16
Wow..thanks mate..that worked really good! Never expected that RUTA will accept direct REGEX
– Vamsi Unique
Apr 2 at 14:16
Good. Consider marking it as a solution please.
– user3711889
Apr 2 at 15:13
Good. Consider marking it as a solution please.
– user3711889
Apr 2 at 15:13
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55338759%2fannotation-not-matching-if-sentence-has-anything-after-the-pattern%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown