Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 8.55 KB | None | 0 0
  1. --irrit_reiteration
  2. ,CASE
  3.  
  4.     WHEN REGEXP_INSTR(TEXT, '(\d+|\b\w*ième|plusieurs*)\sfois(?:\W+\w+){1,5}?\W+r{0,1}(appel|conta|[éeè]cri|demand)', 1,1,1,'i') > 0 THEN 1
  5.     WHEN REGEXP_INSTR(TEXT, '\s(appel[a-zéèer]*|t[eéè]l[eéè]phon[éerè]+)(\W+\w+){,5}\sfois', 1,1,1,'i') > 0 THEN 1
  6.     WHEN REGEXP_INSTR(TEXT, 'à chaque fois', 1,1,1,'i') > 0 THEN 1
  7.     WHEN REGEXP_INSTR(TEXT, 'l[aes]+ dernières? fois', 1,1,1,'i') > 0 THEN 1
  8.     WHEN REGEXP_INSTR(TEXT, '[çcels]+a\sfai[ts]*(\W+\w+){,5}\sfoi', 1,1,1,'i') > 0 THEN 1
  9.     WHEN REGEXP_INSTR(TEXT, 'pas\sla\spremi[eéè]re\sfois', 1,1,1,'i') > 0 THEN 1
  10.     WHEN REGEXP_INSTR(TEXT, 'plusieurs*\sfoi[se]\sauparavant', 1,1,1,'i') > 0 THEN 1
  11.     ELSE 0
  12. END AS irrit_reiteration
  13.  
  14. --irrit_remboursement_tardif
  15. ,CASE
  16.  
  17.     WHEN REGEXP_INSTR(TEXT, 'atten[dres]+(\W+\w+){,5}\srembours', 1,1,1,'i') > 0 THEN 1
  18.     WHEN REGEXP_INSTR(TEXT, 'pas(\W+\w+){,5}\s(re[cç]us?|eu)(\W+\w+){,5}\srembours', 1,1,1,'i') > 0 THEN 1
  19.     ELSE 0
  20. END AS irrit_remboursement_tardif
  21.  
  22. --irrit_absence_reponse
  23. ,CASE
  24.  
  25.     WHEN REGEXP_INSTR(TEXT, 'a[vezr]*\s(rien|pas)\sr[eéè]pondu', 1,1,1,'i') > 0 THEN 1
  26.     WHEN REGEXP_INSTR(TEXT, 'répond[erzs]*\s(\W+\w+){,5}(pas|jamais)(\W+\w+){,5}\s(questions?)', 1,1,1,'i') > 0 THEN 1
  27.     WHEN REGEXP_INSTR(TEXT, 'pas(\W+\w+){1,5}\sr[eèé]pon[erzs]*(\W+\w+){1,5}\squestions?', 1,1,1,'i') > 0 THEN 1
  28.     WHEN REGEXP_INSTR(TEXT, 'pas(\W+\w+){1,5}\sr[éèe]pon[deurzs]*', 1,1,1,'i') > 0 THEN 1
  29.     WHEN REGEXP_INSTR(TEXT, 'refus+(\W+\w+){1,5}\sr[éeè]pon[deurzs]*', 1,1,1,'i') > 0 THEN 1
  30.     WHEN REGEXP_INSTR(TEXT, 'aucun[nes]*\sr[eéè]ponse\sde\svo', 1,1,1,'i') > 0 THEN 1
  31.     WHEN REGEXP_INSTR(TEXT, 'je\s(reste|suis)\ssans\sr[éeè]ponse', 1,1,1,'i') > 0 THEN 1
  32.     WHEN REGEXP_INSTR(TEXT, '(aucuns*|sans|pas\sde|pas\seu\sde)\sretour', 1,1,1,'i') > 0 THEN 1
  33.     WHEN REGEXP_INSTR(TEXT, '(on|personne)(\s|\s(ne\s(me|m.a)\s)|\sne\s)r[éeè]pond', 1,1,1,'i') > 0 THEN 1
  34.     ELSE 0
  35. END AS irrit_absence_reponse
  36.  
  37. --irrit_difficulte_acces
  38. ,CASE
  39.  
  40.     WHEN REGEXP_INSTR(TEXT, '(arriv.{1,5}pa|impossible|probl[eéè]m).{0,15}(conne[cterxions]+|t[éèe]l[éèe]charg|espac.{1,5}clien)', 1,1,1,'i') > 0 THEN 1
  41.     WHEN REGEXP_INSTR(TEXT, '(probl[eéè]).{1,15}(espac.{1,5}clien|identif|mot.{1,8}pass)', 1,1,1,'i') > 0 THEN 1
  42.     WHEN REGEXP_INSTR(TEXT, '(espac.{1,5}clien|identif|mot.{1,8}pass).{1,10}march.{1,5}pa', 1,1,1,'i') > 0 THEN 1
  43.     ELSE 0
  44. END AS irrit_difficulte_acces
  45.  
  46. --irrit_lenteur_traitement
  47. ,CASE
  48.  
  49.     WHEN REGEXP_INSTR(TEXT, 'la\slenteur\sde', 1,1,1,'i') > 0 THEN 1
  50.     WHEN REGEXP_INSTR(TEXT, '[çsc]a\s(tra[iî]ne)', 1,1,1,'i') > 0 THEN 1
  51.     WHEN REGEXP_INSTR(TEXT, '(trop|si|très)\slong', 1,1,1,'i') > 0 THEN 1
  52.     WHEN REGEXP_INSTR(TEXT, '(trop|autant)\sde\stemps', 1,1,1,'i') > 0 THEN 1
  53.     ELSE 0
  54. END AS irrit_lenteur_traitement
  55.  
  56. --irrit_contest_index
  57. ,CASE
  58.  
  59.     WHEN REGEXP_INSTR(TEXT, '(erreur|contest|r[eéè]clam|pas\sles?\sbons?|incohé|souci).{1,20}(index|rel[eéè]v[eéè])', 1,1,1,'i') > 0 THEN 1
  60.     WHEN REGEXP_INSTR(TEXT, '(index|rel[eéè]v[eéè]).{1,30}(erron|faux|incoh[eéè]ren|corresponds?\spas)', 1,1,1,'i') > 0 THEN 1
  61.     ELSE 0
  62. END AS irrit_contest_index
  63.  
  64. --irrit_contest_fact
  65. ,CASE
  66.  
  67.     WHEN REGEXP_INSTR(TEXT, '([cçs]a\s(me\s)?parr?a[îi].?|c.?\s?(est)?|\strouve\s[cçs]a)\s(vraiment\s)?[eèé]norme', 1,1,1,'i') > 0 THEN 1
  68.     WHEN REGEXP_INSTR(TEXT, 'comprends.{1,5}pas.{1,50}fact', 1,1,1,'i') > 0 THEN 1
  69.     WHEN REGEXP_INSTR(TEXT, '(comment.{1,10}|pas).{1,5}possible.{1,30}fact', 1,1,1,'i') > 0 THEN 1
  70.     WHEN REGEXP_INSTR(TEXT, 'factur((\S+)\s){1,4}(comment.{1,10}|pas).{1,4}possible', 1,1,1,'i') > 0 THEN 1
  71.     WHEN REGEXP_INSTR(TEXT, 'fact.{1,25}(\d\sfois(\W+\w+){1,5}?\s[eéè]lev|doublé|tripl)', 1,1,1,'i') > 0 THEN 1
  72.     WHEN REGEXP_INSTR(TEXT, '([eéè]norme|trop).{1,40}(euros)', 1,1,1,'i') > 0 THEN 1
  73.     WHEN REGEXP_INSTR(TEXT, '\squoi.((\S+)\s){0,4}fact', 1,1,1,'i') > 0 THEN 1
  74.     WHEN REGEXP_INSTR(TEXT, 'pourquoi.((\S+)\s){0,3}fact', 1,1,1,'i') > 0 THEN 1
  75.     WHEN REGEXP_INSTR(TEXT, '(r[eéè]clamation|contest(er|ation)).((\S+)\s){0,4}fact', 1,1,1,'i') > 0 THEN 1
  76.     WHEN REGEXP_INSTR(TEXT, 'fact.((\S+)\s){0,6}(r[eéè]clamation|contest(er|ation))', 1,1,1,'i') > 0 THEN 1
  77.     ELSE 0
  78. END AS irrit_contest_fact
  79.  
  80. --irrit_process_fact
  81. ,CASE
  82.  
  83.     WHEN REGEXP_INSTR(TEXT, '(ne\sveu[xt]\s(pas|plus)|refus|changer|arr[eéè]t).{1,20}(pr[eéè]l[eéè]vement\sautomat|carte|ch[éeè]q|mode.{1,10}(paie|pr[eéè]lev))', 1,1,1,'i') > 0 THEN 1
  84.     WHEN REGEXP_INSTR(TEXT, '(pr[eéè]l[eéè]vement\sautomat|carte|ch[éeè]q|(mode.{1,10}(paie|pr[eéè]lev))|mensualisation).{1,10}(ne\sme\sconvients?\s(pas|plus))', 1,1,1,'i') > 0 THEN 1
  85.     WHEN REGEXP_INSTR(TEXT, 'd[eéè]j[aà]\s(pay|envo).{1,10}(fact|cheq)', 1,1,1,'i') > 0 THEN 1
  86.     ELSE 0
  87. END AS irrit_process_fact
  88.  
  89. --irrit_cheq_ener
  90. ,CASE
  91.  
  92.     WHEN REGEXP_INSTR(TEXT, 'ch[eéè]que.{1,5}[eéè]nergie\s((\S+)\s){1,8}pas\s((\S+)\s){0,2}(d[eéè]dui|d[eéè]bit)', 1,1,1,'i') > 0 THEN 1
  93.     ELSE 0
  94. END AS irrit_cheq_ener
  95.  
  96. --irrit_redirect_serv_recouvr
  97. ,CASE
  98.  
  99.     WHEN REGEXP_INSTR(TEXT, '(transmi|transf[eéè]|remont|contact|appel|all|deman|vo[yi]|pass|v[eéè]rifi)((\S+)\s){0,3}service.{1,6}recouvrement', 1,1,1,'i') > 0 THEN 1
  100.     ELSE 0
  101. END AS irrit_redirect_serv_recouvr
  102.  
  103. --irrit_serv_recouvr
  104. ,CASE
  105.  
  106.     WHEN REGEXP_INSTR(TEXT, '(plei|toujour|beaucou|tout\sle\stem)((\S+)\s){1,8}(relanc|mails?\s?)((\S+)\s){1,8}servic((\S+)\s){1,3}recouvr', 1,1,1,'i') > 0 THEN 1
  107.     WHEN REGEXP_INSTR(TEXT, 'd[eé]j[aà]\s(appel|conta|vu\s)((\S+)\s){1,8}recouvr', 1,1,1,'i') > 0 THEN 1
  108.     ELSE 0
  109. END AS irrit_serv_recouvr
  110.  
  111. --irrit_diff_auto_rlv
  112. ,CASE
  113.  
  114.     WHEN REGEXP_INSTR(TEXT, '(probl[éeè]|essay.{1,10}faire|arrive.{1,5}pas|souci).{1,30}auto[-|\s]rel[eèé]ve', 1,1,1,'i') > 0 THEN 1
  115.     ELSE 0
  116. END AS irrit_diff_auto_rlv
  117.  
  118. --irrit_process_souscription
  119. ,CASE
  120.  
  121.     WHEN REGEXP_INSTR(TEXT, 'final.{1,10}signatur.{1,10}contr', 1,1,1,'i') > 0 THEN 1
  122.     WHEN REGEXP_INSTR(TEXT, '(av.{1,5}pa|aucune).{1,10}demand.{1,10}souscript', 1,1,1,'i') > 0 THEN 1
  123.     WHEN REGEXP_INSTR(TEXT, 'refaire\s((\S+)\s){1,5}souscript', 1,1,1,'i') > 0 THEN 1
  124.     ELSE 0
  125. END AS irrit_process_souscription
  126.  
  127. --irrit_process_mise_en_serv
  128. ,CASE
  129.  
  130.     WHEN REGEXP_INSTR(TEXT, '(pas.{1,10}(re[çc]u|activ)).{1,10}compteur', 1,1,1,'i') > 0 THEN 1
  131.     WHEN REGEXP_INSTR(TEXT, 'compteur.{1,20}(pas.{1,10}(activ|arriv))', 1,1,1,'i') > 0 THEN 1
  132.     ELSE 0
  133. END AS irrit_process_mise_en_serv
  134.  
  135. --irrit_absence_recept_fact
  136. ,CASE
  137.  
  138.     WHEN REGEXP_INSTR(TEXT, 'ai(\W+\w+){,5}\s(rien|pas)\sre[cç]u.{1,10}fact', 1,1,1,'i') > 0 THEN 1
  139.     ELSE 0
  140. END AS irrit_absence_recept_fact
  141.  
  142. --irrit_absence_prel_fact
  143. ,CASE
  144.  
  145.     WHEN REGEXP_INSTR(TEXT, '(j.\s?a|je\sn.\s?a|factur|nou|mar|conjoin|fil|femm)((\S+)\s){1,4}(pas|jamais|toujours\spas)\s[eéè]t[eéè].{1,5}(d[eéè]bit|pr[eéè]lev)', 1,1,1,'i') > 0 THEN 1
  146.     WHEN REGEXP_INSTR(TEXT, '(nous|on|vous)\s((\S+)\s){1,4}(pas|jamais|toujours\spas)\s[eéè]t[eéè].{1,5}(d[eéè]bit|pr[eéè]lev)', 1,1,1,'i') > 0 THEN 1
  147.     ELSE 0
  148. END AS irrit_absence_prel_fact
  149.  
  150. --irrit_dysfonct_compt
  151. ,CASE
  152.  
  153.     WHEN REGEXP_INSTR(TEXT, '(dysfonct|probl[eéè]|souci|anomali)((\S+)\s){1,3}compteu', 1,1,1,'i') > 0 THEN 1
  154.     WHEN REGEXP_INSTR(TEXT, 'compteu.{1,20}(marche\s((\S+)\s){0,3}pas|souci|probl[eéè])', 1,1,1,'i') > 0 THEN 1
  155.     ELSE 0
  156. END AS irrit_dysfonct_compt
  157.  
  158. --irrit_resil_non_traite
  159. ,CASE
  160.  
  161.     WHEN REGEXP_INSTR(TEXT, 'd[eé]j[aà]\sfai((\S+)\s){1,5}r[eéè]siliat', 1,1,1,'i') > 0 THEN 1
  162.     WHEN REGEXP_INSTR(TEXT, 'd[ée]j[aà]\sdemand((\S+)\s){1,3}r[eéè]siliat', 1,1,1,'i') > 0 THEN 1
  163.     WHEN REGEXP_INSTR(TEXT, '(erreu|pas\snorma)((\S+)\s){1,8}contra((\S+)\s){1,5}actif', 1,1,1,'i') > 0 THEN 1
  164.     WHEN REGEXP_INSTR(TEXT, 'contra((\S+)\s){1,5}acti((\S+)\s){1,7}r[eéè]sil', 1,1,1,'i') > 0 THEN 1
  165.     WHEN REGEXP_INSTR(TEXT, 'r[eéè]sil((\S+)\s){1,7}contra((\S+)\s){1,3}toujours\sactif', 1,1,1,'i') > 0 THEN 1
  166.     ELSE 0
  167. END AS irrit_resil_non_traite
  168.  
  169. --irrit_resil_non_soll
  170. ,CASE
  171.  
  172.     WHEN REGEXP_INSTR(TEXT, 'jamai((\S+)\s){1,5}(demand)((\S+)\s){1,4}r[eéè]sil', 1,1,1,'i') > 0 THEN 1
  173.     WHEN REGEXP_INSTR(TEXT, '(une|la)\s(r[eéè]sil[eéèation]*).{1,5}tor[td]', 1,1,1,'i') > 0 THEN 1
  174.     WHEN REGEXP_INSTR(TEXT, 'r[eéè]sil((\S+)\s){1,5}(pas|jamais).{1,8}demand', 1,1,1,'i') > 0 THEN 1
  175.     ELSE 0
  176. END AS irrit_resil_non_soll
  177.  
  178. --irrit_process_interv
  179. ,CASE
  180.  
  181.     WHEN REGEXP_INSTR(TEXT, 'technicien.{0,10}\s(mais|jamais\svenu)\s', 1,1,1,'i') > 0 THEN 1
  182.     WHEN REGEXP_INSTR(TEXT, 'intervention.{0,30}(déla|urge)', 1,1,1,'i') > 0 THEN 1
  183.     WHEN REGEXP_INSTR(TEXT, '(intervention|technicien).{1,30}(mal.{1,5}pass|toujour.{1,10}(pa|probl[eéè]m))', 1,1,1,'i') > 0 THEN 1
  184.     WHEN REGEXP_INSTR(TEXT, 'technicien.{1,10}(aurait.{1,5}d[ûu]|devait?|pas).{1,5}ven', 1,1,1,'i') > 0 THEN 1
  185.     ELSE 0
  186. END AS irrit_process_interv
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement