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

Write a module to return "midfix" of a sentence. #20

Open
ShaswatLenka opened this issue Sep 12, 2020 · 0 comments
Open

Write a module to return "midfix" of a sentence. #20

ShaswatLenka opened this issue Sep 12, 2020 · 0 comments
Assignees
Labels
feature new feature high priority This should be considered to be on top of your TODO lists module create a module

Comments

@ShaswatLenka
Copy link
Collaborator

Write a method-like (methods belong to a class) module getMidfix(*args) that takes a sentence and returns the midfix of the sentence. midfix is the part of the sentence that is between the prefix and the postfix. The prefix is always a drug name and the postfix is always an ADR, irrespective of where they appear in a sentence. You are provided with a dictionary of the following structure: {drug_name : list(adr_1,adr_2,...adr_n)}. with type: {str:list(str,str...,str)}.
Note that the ADRs encountered in the tweets might not always be well defined in the ADR list already provided to you. You are required to find a solution that is able to successfully extract the midfix(or an equivalent sentence containing a midfix with least error) if such a situation arises.
All the modules go into the /modules directory.

@ShaswatLenka ShaswatLenka added feature new feature module create a module labels Sep 12, 2020
@ShaswatLenka ShaswatLenka added the high priority This should be considered to be on top of your TODO lists label Sep 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature new feature high priority This should be considered to be on top of your TODO lists module create a module
Projects
None yet
Development

No branches or pull requests

2 participants