in: " . print_sentence($sentence); //$_SESSION['form'] .= "
out: " . print_sentence_list($output); //$_SESSION['form'] .= print_sentence_detailed($sentence); //echo "
"; print_r($sentence); /* if ($error=='decision') { $_SESSION['form'] .= print_sentence_alternatives($sentence); //$_SESSION['sentence'] = $sentence; } else if ($error) echo "
error = " . $error; else $_SESSION['form'] .= print_sentence_highlight_decided($sentence); //print_r($output); */ /* if (!$error) { if ($task == "enter") enter_sentence($sentence); if ($task == "answer") $_SESSION['form'] .= answer_question($sentence); //{echo "kkk"; enter_sentence($sentence);} }*/ $_SESSION['sentence'] = $sentence; if ($debug) //(DEBUG_MODE) { $_SESSION['mask'] = true; deby( "

weiter

"); die(); } //$sentence = new sentence(); //$sentence->analyse(); //header("Location: mask.php"); //exit(); goto_mask(); } if (isset($_POST['classify_words_button'])) { //$_SESSION['form'] = ""; reset_output(); // $_POST['input_button'] = true; enter_new_words($_POST); //unset($_SESSION['unknown_words']); // echo $_SESSION['unknown_words']; //die("oh"); $_SESSION['process_input'] = true; //die(); header("Location: process_data.php"); exit(); } if (isset($_GET['pos']) && isset($_GET['l_value'])) { //echo $_GET['pos'] . " " . $_GET['l_value'] . " "; $_SESSION['sentence'][$_GET['pos']]['l_value'] = $_GET['l_value']; // $_SESSION['sentence'][$_GET['pos']]['l_type'] = L_TYPE; $_SESSION['sentence'][$_GET['pos']]['decision'] = $_GET['l_value']; $_SESSION['process_sentence'] = true; //echo print_sentence_detailed($_SESSION['sentence']); //die(); header("Location: process_data.php"); exit(); } if (isset($_GET['pos']) && isset($_GET['alt_noun'])) { $_SESSION['sentence'][$_GET['pos']]['stop_marker'] = true; $_SESSION['process_sentence'] = true; //echo print_sentence_detailed($_SESSION['sentence']); //die(); header("Location: process_data.php"); exit(); } if (isset($_GET['verb'])) { if (isset($_GET['objects'])) { $_SESSION['sentence'][$_GET['verb']]['number_of_objects'] = $_GET['objects']; } else { $_SESSION['sentence'][$_GET['verb']]['verb'] = true; } $_SESSION['process_sentence'] = true; header("Location: process_data.php"); exit(); } if (isset($_GET['no_machine_decision'])) { $_SESSION['sentence'][$_GET['no_machine_decision']]['no_machine_decision'] = true; $_SESSION['process_sentence'] = true; //echo print_sentence_detailed($_SESSION['sentence']); //die(); header("Location: process_data.php"); exit(); } if (isset($_GET['no_machine_decision_noun_sequence'])) { $_SESSION['sentence'][$_GET['no_machine_decision_noun_sequence']]['no_machine_decision_noun_sequence'] = true; $_SESSION['process_sentence'] = true; header("Location: process_data.php"); exit(); } if (isset($_GET['no_machine_decision_objects'])) { $_SESSION['sentence'][$_GET['no_machine_decision_objects']]['no_machine_decision_objects'] = true; $_SESSION['process_sentence'] = true; header("Location: process_data.php"); exit(); } if (isset($_GET['delete_input'])) { reset_output(); output("

Do you really want to delete this entry?

"); output("

" . get_array_value(get_input_row($_GET['delete_input']),'text') . "

"); form_yes_no('delete_input'); //$_SESSION['action'] = 'delete_input'; $_SESSION['input_id'] = $_GET['delete_input']; goto_mask(); } if (isset($_GET['alter_input'])) { reset_output(); output("

Warning! You are altering this entry:

"); $_SESSION['input'] = get_array_value(get_input_row($_GET['alter_input']),'text'); //output("

This entry will be altered:

"); output("

" . $_SESSION['input'] . "

"); $_SESSION['input_id'] = $_GET['alter_input']; $_SESSION['mode'] = "enter"; goto_mask(); } if (isset($_POST['yes_button_delete_input'])) { reset_output(); delete_sentence($_SESSION['input_id']); output("

Entry deleted

"); goto_mask(); } if (isset($_POST['no_button'])) { reset_output(); output("

Aborted

"); goto_mask(); } if (/*!isset($_POST['enter_button']) &&*/ ( (/*isset($_SESSION['mask']) &&*/ $_SESSION['mode'] == "search")) ) { // if (isset($_POST['enter_button'])) $a = 100; else $a=-1; // echo "search" .$_POST['search_button'] . " enter $a"; //die("que"); $_SESSION['mode'] = "search"; if (isset($_POST['input'])) $_SESSION['input'] = $_POST['input']; unset($_SESSION['mask']); include("search.php"); } else if (/*!isset($_POST['process_button']) &&*/ ( (/*isset($_SESSION['mask']) &&*/ $_SESSION['mode'] == "enter")) ) { //die("enter"); $_SESSION['mode'] = "enter"; if (isset($_POST['input'])) $_SESSION['input'] = $_POST['input']; unset($_SESSION['mask']); include("enter.php"); } // if (!$debug) // ob_end_clean(); //include("help.php"); ?>