Input:
Bogdan, "Yucca"
Josy, "Orange County"
Bill, "San Diego"
Example:
Bogdan lives in Yucca
Output:
Bogdan lives in Yucca
Josy lives in Orange
Bill lives in San
This is neat. I find myself wanting more detail on what works, though. For example, I c/ped your original example and tried "Roberto C. from Brazil."
It didn't infer that C. meant to truncate the last name, so everything ended up "John C." No biggie, but trying to figure out what does and doesn't work aside from tokenized string formatting was a bummer. Having the uppercase example led me to believe it could do more types of transformation. Possible the right answer is hinting of some kind. "Roberto {C.} from Brazil" to hint that the C. should be matched with -something-, and since . naturally means abbreviation would mean "starts with C".
For more, I gave a feel for how to rethink the full data pipeline using these ideas @ Strange Loop: http://www.infoq.com/presentations/dsl-visualization . It pulls on several projects from program synthesis @ berkeley. (These directly led to applications mentioned here like flashfill.)
Comments (144) 66 threads
Earlier commentsUSA, Barack
Germany, Angela
to
USA, Obama
Germany, Merkel
based on a single example. Do this please. :)
It didn't infer that C. meant to truncate the last name, so everything ended up "John C." No biggie, but trying to figure out what does and doesn't work aside from tokenized string formatting was a bummer. Having the uppercase example led me to believe it could do more types of transformation.
Possible the right answer is hinting of some kind. "Roberto {C.} from Brazil" to hint that the C. should be matched with -something-, and since . naturally means abbreviation would mean "starts with C".
Input:
Ex: 1. Taco BellOutput:
? When I take the spaces out of the restaurants I get:New Input:
Ex: 1. TacoBellNew Output:
I wish I knew which paper he was referring to - it's a great feature :).
All comments shown.
Couldn't load more comments. Check your connection and try again.