Bonjour,
J'essaye de creer un script pour reverse un content spinning.<br />

Vous trouverez ci-dessous un exemple pour mieux comprendre (en anglais):

{My friend Max|He} {taps|raps|thumps|drums} his {pencil|pen|finger} {against|on} {his|the} {desk|table|writing desk} and {chews|chews on|gnaws on} gum {when|while} {he’s|he is} {bored|tired|lazy}.

  1. ROUGE : “My friend Max thumps his finger on his desk and gnaws on gum when he is lazy.”
  2. BLEU : “He raps his pencil against the table and chews on gum while he is tired.”

<hr>

La problematique :

Imaginons que j'ai 1000 resultats d'un Spin que je ne connais pas, comment je peux faire pour retrouver, plus ou moins, le Spin d'origine grace au differents tirages ? Exemple du resultat attendu :

{My friend Max|He} {taps|raps|thumps|drums} his {pencil|pen|finger} {against|on} {his|the} {desk|table|writing desk} and {chews|chews on|gnaws on} gum {when|while} {he’s|he is} {bored|tired|lazy}.

Merci pour votre aide

1 réponse