-
Notifications
You must be signed in to change notification settings - Fork 31
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
kbs: update report-nbumbers.kb #66
base: master
Are you sure you want to change the base?
Conversation
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.
There are multiple patterns containing hyphens on the left side. I flagged only a few. Please revise. There is a duplicate pattern with ambiguous replacement.
I think we should have test cases along with this major update of patterns.
CDF PUB PLUG UPGR PUBLIC ---CDF-PUB-PLUG-UPGR-PUBLIC | ||
CDF PUB PUBLIC ---CDF-PUB-PUBLIC | ||
CDF PUB SEC VTX PUBLIC ---CDF-PUB-SEC-VTX-PUBLIC | ||
CDF PUB SEC VTX PUBLIC ---CDF-PUB-SEC_VTX-PUBLIC |
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.
so the same seek term now has 2 different replacement strings. I don't think that is well defined. probably the later one overwrites the earlier one
@@ -362,18 +372,63 @@ SLAC PUB ---SLAC-PUB | |||
SLAC R ---SLAC-R | |||
SLAC TN ---SLAC-TN | |||
SLAC WP ---SLAC-WP | |||
SLAC-CN ---SLAC-CN |
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.
hyphens should not be in the match pattern
SLAC-PEP-II-EE-NOTE ---SLAC-PEP-II-EE-NOTE | ||
SLAC-BABAR-THESIS ---SLAC-BABAR-THESIS | ||
SLAC-BABAR-TALK ---SLAC-BABAR-TALK | ||
SLAC-SSRL ---SLAC-SSRL |
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.
lots of unwanted hyphens
|
||
BNL ---BNL | ||
BNL AADD ---BNL-AADD | ||
BNL AD-RHIC ---BNL-AD-RHIC |
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.
hyphen
* Removes duplicate entries. * Removes dashes from seek-terms. * Adds new report numbers. Signed-off-by: fschwenn [email protected]
|
||
*****Tokyo Inst. Tech.***** | ||
<s999?> | ||
<s999?-NP> |
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.
not sure about the hyphen here, I don't think it'll match
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.
I don't think either, as it should have been stripped
I think it would be good to have a sample original reference line for each pattern, or at least each pattern group as a list of test cases. This would confirm the pattern does what is intended to do and no other pattern matches. At least would show when hyphens are incorrect. |
@fschwenn take a look at https://github.com/inspirehep/refextract/pull/67/files also, since that PR was merged, you need to rebase your PR |
Dear Thorsten,
I think I can add test routines following Melissas example. Thanks for pointing them out to me.
But I will probably fail with the rebase stuff. Would it be ok for you to just reject my previous pull request and I implement my additions on top of the actual master (in a new branch)?
I know that in principle git allows much more elegant ways to handle it.
Best regards,
Florian
…--
Florian Schwennsen
Deutsches Elektronen-Synchrotron DESY
Building 01 Room O1.446
phone: +49-40-8998-6190
From: "Thorsten Schwander" ***@***.***>
To: "inspirehep/refextract" ***@***.***>
Cc: "Florian Schwennsen" ***@***.***>, "Mention"
***@***.***>
Sent: Tuesday, 11 June, 2019 19:15:13
Subject: Re: [inspirehep/refextract] kbs: update report-nbumbers.kb (#66)
[ https://github.com/fschwenn | @fschwenn ] take a look at [
https://github.com/inspirehep/refextract/pull/67/files |
https://github.com/inspirehep/refextract/pull/67/files ]
there you see test-cases Melissa added for the Fermilab report number parsing
also, since that PR was merged, you need to rebase your PR
—
You are receiving this because you were mentioned.
Reply to this email directly, [
#66?email_source=notifications&email_token=ABZ5NE6F6G4HACBJHRCZLKLPZ7MSDA5CNFSM4HO3KUV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXN3TEQ#issuecomment-500939154
| view it on GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/ABZ5NE4WMMWBML7RHAKJTZDPZ7MSDANCNFSM4HO3KUVQ
| mute the thread ] .
|
Removes duplicate entries.
Removes dashes from seek-terms.
Adds new report numbers.
Signed-off-by: fschwenn [email protected]