in reply to Re^2: create an xml file from column file
in thread create an xml file from column file
I pressed the wrong button and shrunk the code accidentially. It still should do what you want.
use strict; use warnings; print "<text>",join(" ",map{/^(\w+).*?(B-NP|I-NP)?$/; $a.="<annotation><type>NP</type><text>$1</text></annotation>\n"if$2;$1 +}<DATA>),"<text>\n$a"; __DATA__ how B-NP are you I-NP really
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: create an xml file from column file
by lakssreedhar (Acolyte) on Jul 25, 2013 at 06:11 UTC | |
by hdb (Monsignor) on Jul 25, 2013 at 07:58 UTC | |
by lakssreedhar (Acolyte) on Jul 25, 2013 at 09:19 UTC | |
by hdb (Monsignor) on Jul 25, 2013 at 09:46 UTC | |
by lakssreedhar (Acolyte) on Jul 25, 2013 at 11:02 UTC | |
|