=0 && $iTo>$iFrom) or die("You have finished annotating the current batch. Thanks!"); $IN_FILE = "$split.automatic_tags"; $f = fopen($IN_FILE, 'r'); // The sentences. Word tokens are space-separated and have default tags. // $SENTENCES = array('Mark/^ Owens/^ will/M be/V chairing/V the/D session/N with/P Dr./^ Phelps/^ ./,', // 'Down/N is/V neither/X as/P warm/A as/P fur/N ,/, nor/X as/P expensive/A ./,'); $SENTENCES = array(); if ($f) { $l = 0; while (($entry = fgets($f)) !== false) { if ($l >= $iFrom) { if ($l >= $iTo || $l >= ($iFrom+$perpage)) break; $entry = htmlspecialchars($entry, ENT_QUOTES); $entry = explode("\t", $entry); $twitterId = $entry[0]; $tokenizedS = $entry[1]; $tagsS = $entry[2]; $metadata = "$twitterId " . join("@@", array_slice($entry, 3)); //json_indent($entry[3]); $tokens = explode(' ', $tokenizedS); $tags = explode(' ', $tagsS); $taggedS = ""; for ($i=0; $i trim($taggedS), 'twitterId' => $twitterId, 'metadata' => $metadata)); } $l++; } fclose($f); } ?> Twitter Bullying Annotation ()

Twitter Bullying Annotation