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
variable reader tests #117
Comments
Thanks @IkeKobby ! |
You're welcome @MihaiSurdeanu |
A couple of comments:
|
|
|
Hi @MihaiSurdeanu, @maxaalexeeva please, TestVariableReaderLabelBased is updated.
|
@IkeKobby @MihaiSurdeanu, I have two main comments based on this set of event tests:
I see two options for handling these:
|
|
Dear @maxaalexeeva, please kindly have a look at this |
@IkeKobby if I understand correctly, you only allow one mention of each type in test. I wonder if it would be better to have a structure like this: val desired = Map(
Label1 -> Seq(Value1, Value 2), // e.g., here, this could be two values with a label crop
Label2 -> Seq(Value3), // and this one could be one Yield mention
Label3 -> Seq(Value4, Value5, Value6) // and three fertilizer (Imaging this is a veeeery long sentence :) )
) I think I have seen this structure in some other projects. And you could go through key, value pairs in the map and check if they are present in extracted mentions (filter extracted mentions by the label, check size (should match the length of the sequence with values for that label) and then check the overlap in text between extracted and desired values. There could be issues with this idea, but I have not tried it. |
BTW the class and file names (entitiesTest -> EntitiesTest) need to be uppercase. Git with Windows with case issues leads to problems :-( so we have to be extra careful about it. |
Okay @maxaalexeeva. Please I think we should discuss this on call tomorrow if that is okay? |
Okay @kwalcock. I will do that please. |
I'm not quite sure what this means, but Masha can almost surely help with it if you two talk. // I think I would need a better way to map ONLY extracted values. For now, here is what I am able to do.
// I do not know how to use "append" like in python, I could have append ONLY extracted
// entities to `targetMentionsLabelTexts` from the `for loop above` and check for their existence in the last line. |
Okay sure. |
@MihaiSurdeanu before I (or someone else) go changing rules to stop using generic Assignment label, do these look like reasonable labels/todos to you for the old set of tests (starting line 64)? 86c1fee |
|
Okay. Well noted.
|
@MihaiSurdeanu @IkeKobby I will adjust these. |
Okay @maxaalexeeva
|
Hi @maxaalexeeva , @MihaiSurdeanu here are the links to the variables tests files TestVariableReaderLabelBased and TestVariableReaderEntities.
The text was updated successfully, but these errors were encountered: