-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add new synthesis recipes to API. #257
Conversation
…d paragraph keywords (half-completed).
Hi @mkhorton could you elaborate on what tests should be implemented for this particular API? Thanks! |
Right now, no tests (shocking, I know!). We're just building up our test suite for this repo and figuring out what they should look like, starting with client tests, maybe @munrojm can comment. In any case, this can be merged without tests if it's otherwise good. |
@hhaoyan, not currently. What sort of post-processing do you have in mind? Right now the idea is to have the |
I’m trying to selectively return part of a full text paragraph based on search keywords, which requires the post processor to have access to the search keywords. For example,if a search keyword is preset in the second sentence, then only that sentence will be returned. This is somewhat similar to what google search results look like. Is there a way I can achieve this? |
Have you looked into using an aggregation pipeline similar to what is in Let me know if this looks like it will work. If not, we can figure out something else. |
Yes, this is how I've done the highlighting on the current synthesis data -- I just set |
Thanks for the info @mkhorton @munrojm ! I looked at what had been done in |
@mkhorton I think this could be merged now! |
@hhaoyan, can you confirm that you are able to query properly when running the API locally? |
Just had a conversation with @codytodonnell and it seemed to work well. |
@hhaoyan, okay great. Do you mind fixing the mypy linting issues before I merge? Don't worry about the second set of tests. |
OK sure! Also, the code has 9 The code that runs 9 |
I am going to merge For now, can you simply comment out that code block? |
This looks great, my only comment would be to add a docstring to the data_adaptor files to clarify what they do, what data they take, etc. and for some of the functions in those files too. |
OK, the mypy lint was fixed and I added docstrings to data adaptors. I also commented the block of ensuring indexes. |
Great, thanks @hhaoyan! |
Thanks Haoyan!
…On Thu, Jun 3, 2021 at 3:44 PM Jason Munro ***@***.***> wrote:
Merged #257 <#257> into main.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#257 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAWWWRFBNXJZB5E6EISRM6LTRAATTANCNFSM43S6B33Q>
.
|
Adding new schema for synthesis recipes as we want to incorporate the latest solid-state/sol-gel synthesis datasets at https://github.com/CederGroupHub/text-mined-synthesis_public.
Contributor Checklist
I have run the tests locally and they passed.I have added tests, or extended existing tests, to cover any new features or bugs fixed in this PR