correct.txt snippet:
1 2 1
1 3 3
1 5 21
1 7 19
union_output_TEMP.txt snippet:
1 2 1_NN
1 3 3_VBZ
1 3 5_VBZ
1 3 2_VBZ
1 5 21_VB
1 7 19_NN
1 9 14_VB
I need to get the output in categorized.txt as:
NN={1 7 19, 1 2 1}
VBZ={1 3 3}
VB={1 5 21}
in python.
Kindly help
1 2 1
1 3 3
1 5 21
1 7 19
1 10 13
2010/1/11 Eknath Venkataramani eknath.i...@gmail.com:
correct.txt snippet:
1 2 1
1 3 3
1 5 21
1 7 19
union_output_TEMP.txt snippet:
1 2 1_NN
1 3 3_VBZ
1 3 5_VBZ
1 3 2_VBZ
1 5 21_VB
1 7 19_NN
1 9 14_VB
I need to get the output in categorized.txt as:
NN={1 7 19, 1 2 1}
VBZ={1 3 3}