Wie reinige ich die Daten einer Konversation richtig? [geschlossen]Python

Python-Programme
Anonymous
 Wie reinige ich die Daten einer Konversation richtig? [geschlossen]

Post by Anonymous »

sagen wir, wir haben die Daten wie folgt
Eingabe

Code: Select all

*MOT:   what's that ?
%mor:   pro:int|what~cop|be&3S pro:dem|that ?
%gra:   1|2|SUBJ 2|0|ROOT 3|2|PRED 4|2|PUNCT
%act:   holds object out to Amy
*CHI:   yyy .
%gpx:   looks at chicken
%act:   holds nesting cups
%xpho:  wi
*MOT:   it's a chicken .
%mor:   pro:per|it~cop|be&3S det:art|a n|chicken .
%gra:   1|2|SUBJ 2|0|ROOT 3|4|DET 4|2|PRED 5|2|PUNCT
*MOT:   what is [!] that ?
%mor:   pro:int|what cop|be&3S pro:dem|that ?
%gra:   1|2|SUBJ 2|0|ROOT 3|2|PRED 4|2|PUNCT
%act:    holds object out to Amy
Ich verstehe, dass wir nur die Konversation haben, oder?
Ich gehe davon aus, dass Dinge wie %Mor: , %GRA: usw. entfernt werden sollten. ?
Aber wie wäre es mit *chi: yyy.?
Nach dem Entfernen wird es Chi:.

Code: Select all

MOT:   what's that ?
CHI:   yyy .
MOT:   it's a chicken .
MOT:   what is that ?
Ausgabe 2:

Code: Select all

MOT:   what's that ?
MOT:   it's a chicken .
MOT:   what is that ?
Die Hauptfrage hier ist, dass ich wissen möchte, wie ich diese Art von Konversationsdaten reinigen kann.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post