use perl to extract specific output lines
问题 I'm endeavoring to create a system to generalize rules from input text. I'm using reVerb to create my initial set of rules. Using the following command[*], for instance: $ echo "Bananas are an excellent source of potassium." | ./reverb -q | tr '\t' '\n' | cat -n To generate output of the form: 1 stdin 2 1 3 Bananas 4 are an excellent source of 5 potassium 6 0 7 1 8 1 9 6 10 6 11 7 12 0.9999999997341693 13 Bananas are an excellent source of potassium . 14 NNS VBP DT JJ NN IN NN . 15 B-NP B-VP