Changeset 2572


Ignore:
Timestamp:
Jan 4, 2012, 9:32:16 PM (8 years ago)
Author:
komodo
Message:

fix cas particuliers tagging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/branches/senat/project/lib/task/tagSeanceTask.class.php

    r2444 r2572  
    163163          }
    164164         
    165           if (($sentences[$sent]*100/$tot > 0.8 || $sentences[$sent]*100/$words[$sent2word[$sent]] > 70)&& $words[$sent2word[$sent]] > 5) {
     165          if (($sentences[$sent]*100/$tot > 0.8 || ($words[$sent2word[$sent]] && $sentences[$sent]*100/$words[$sent2word[$sent]] > 70))&& $words[$sent2word[$sent]] > 5) {
    166166            $ok = 1;
    167167            foreach($exclude_sentences as $excl_sent) {
     
    193193        $i = null;
    194194        foreach (array_keys($tags) as $tag) {
    195           $tag = trim($tag);
     195          $tag = trim(preg_replace('/^[dl]\'/', '', trim($tag)));
    196196          if (preg_match('/'.preg_replace('/\//', '\/', $tag).'/i', $inter['intervention'])) {
    197197            if (!$i)
Note: See TracChangeset for help on using the changeset viewer.