Live data from Hacker News

Show HN: A tool that transforms your whole list with just one example

transformy.io

111–120 of 151 posts

Re: Show HN: A tool that transforms your whole list with just one example

#113
post #15

Amazing tool. Feature requests: allow for more than one example. Input: {"class": "101", "students": 101} {"class": "201", "students": 80} {"class": "202", "students": 50} {"class": "301", "students": 120} Example: Class 101 has 101 students Output: Class 101 has 101 students Class 201 has 201 students Class 202 has 202 students Class 301 has 301 students Right now the first line cannot have any ambiguity. This is fi…

You could just add a "dummy" input as the first line with all unique entries. Then just remove it from the output. Am I missing something? It's a tiny bit of additional manual processing, but doesn't seem unreasonable.

Re: Show HN: A tool that transforms your whole list with just one example

#114
post #15

Amazing tool. Feature requests: allow for more than one example. Input: {"class": "101", "students": 101} {"class": "201", "students": 80} {"class": "202", "students": 50} {"class": "301", "students": 120} Example: Class 101 has 101 students Output: Class 101 has 101 students Class 201 has 201 students Class 202 has 202 students Class 301 has 301 students Right now the first line cannot have any ambiguity. This is fi…

You could just add a "dummy" input as the first line with all unique entries. Then just remove it from the output. Am I missing something? It's a tiny bit of additional manual processing, but doesn't seem unreasonable.

Re: Show HN: A tool that transforms your whole list with just one example

#117

for this list: tennis 3 4 5 wilson 1 2 3 robert 5 6 7 some patterns that didn't work: tennis nis tennis 12

loool @ tennis nis

not sure why it was downvoted, you could potentially chain inferences like:

tennis 12 even

Re: Show HN: A tool that transforms your whole list with just one example

#118
post #84

Earlier quoted context omitted.

Given this "35, Roberto/Carlos Michael Jordan, baseball, USA" tuple what are you expecting as output?

I was expecting that as the output but got: 35, ROBERTO/CARLOS, Michael, Jordan See other response as it works on word by word. Here is (hopefully) a better example: Input: 35, Billy Jean, soccer, USA 29, Billy Jo Jean, football, USA Transform-at: 35, soccer, Billy Jean, USA You'll get: 35, soccer, Billy Jean, USA 29, Jean, Billy Jo, football But I was expecting: 35, soccer, Billy Jean, USA 29, football, Billy Jo Jea…

Right, understand now, it's using words as atoms rather than breaking fields at the commas and using them.

Re: Show HN: A tool that transforms your whole list with just one example

#119
post #74
post #18

Earlier quoted context omitted.

This is already in Excel as FlashFill, so don't know if you're being sarcastic. http://research.microsoft.com/en-us/um/people/sumitg/

Not sarcastic... I didn't know about FlashFill. I looked at the videos, and it seems that it's not as powerful as this tool. In excel the results would be a custom cell format combined with custom text functions.

Like so? https://www.youtube.com/watch?v=UccfqwwOCoY

Re: Show HN: A tool that transforms your whole list with just one example

#120
Great tool, but too bad it can't handle code very well.

An example (converting C++ to C):

    Input:
    void FileStream::write(char* , int);
    void VirtualMachine::cycle(int);

    Example:
    void FileStream_write(char* , int);

    Output:
    void FileStream_write(char* , int);
    void VirtualMachine_cycle(int* , );
Also, is it open-source?
Post reply on HN