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

Learn extraction programs from multiple examples #29

Closed
eglassman opened this issue Jul 27, 2017 · 4 comments
Closed

Learn extraction programs from multiple examples #29

eglassman opened this issue Jul 27, 2017 · 4 comments
Assignees
Labels

Comments

@eglassman
Copy link
Collaborator

Here's the method to adapt:

[TestMethod]
        public void TestLearnMultipleExamples1()
        {
            var examples = new List<Tuple<string, string>>();
            var before = @"i = 0";
            var after = @"i = 1";
            examples.Add(Tuple.Create(before, after));
            before = @"i, j = 0, 1";
            after = @"i, j = 1, 1";
            examples.Add(Tuple.Create(before, after));
            TestUtils.AssertCorrectTransformation(examples);
        }
@eglassman eglassman self-assigned this Jul 27, 2017
@eglassman
Copy link
Collaborator Author

I need to create an extraction version of

public static void AssertCorrectTransformation(IEnumerable<Tuple<string, string>> examples)

@eglassman
Copy link
Collaborator Author

First draft written, but buggy.

@eglassman eglassman changed the title Test how well extraction programs are learned from multiple examples Learn extraction programs from multiple examples Jul 27, 2017
@eglassman eglassman added bug and removed enhancement labels Jul 27, 2017
@eglassman
Copy link
Collaborator Author

@gustavoasoares I just pushed a test to learn extractions from multiple examples. I'm not sure why it is failing because PROSE just learns nothing. How do you debug that?

@eglassman
Copy link
Collaborator Author

Done! (Question above still relevant for future debugging things.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant