afficher le resultat de la segmentation dans un fichier xml
Bonjour ,
J'ai créer une interface avec tkinter je segmente un texte en phrases et en mots et je voulais afficher le résultat de la segmentation dans un fichier xml comme ceci :
-<SEG id="ABC_ENG_20001013.1830.0675-1" end_char="124" start_char="0"> <ORIGINAL_TEXT>But the sense of urgency for this meeting matches the rage felt by both Israelis and Palestinians after yesterday's violence.</ORIGINAL_TEXT> <TOKEN id="ABC_ENG_20001013.1830.0675-1-1" end_char="2" start_char="0">But</TOKEN> <TOKEN id="ABC_ENG_20001013.1830.0675-1-2" end_char="6" start_char="4">the</TOKEN> <TOKEN id="ABC_ENG_20001013.1830.0675-1-3" end_char="12" start_char="8">sense</TOKEN> <TOKEN id="ABC_ENG_20001013.1830.0675-1-4" end_char="15" start_char="14">of</TOKEN>