Erwerb funktionaler, räumlicher und kausaler Beziehungen von ...

ai.cs.uni.dortmund.de

Erwerb funktionaler, räumlicher und kausaler Beziehungen von ...

Anhang 90

if(strcmp(definition->output,"") == 0)

exit_on_error("No outputfile");

if(definition->pred_arg_position == 0)

exit_on_error("No argument definition");

if(definition->pred_arg_start_position > definition->pred_arg_end_position)

{

printf("Argument Definition : Error in pred_arg_start/end_position\n");

check_ok = FALSE;

}

if((!(is_add(definition->pred_arg_add)) || (strcmp(definition->pred_arg_add,"") == 0)))

{

printf("Argument Definition : Error in pred_arg_add\n");

check_ok = FALSE;

}

if(strcmp(definition->pred_arg_pattern,"") == 0)

{

printf("Argument Definition : Error in pred_arg_pattern\n");

check_ok = FALSE;

}

if((definition->pred_arg_position == 0) || \

(definition->pred_arg_start_position == 0) || \

(definition->pred_arg_end_position == 0))

{

printf("Argument Definition : Impossible value\n");

check_ok = FALSE;

}

akt_def = definition->first;

while (akt_def !=NULL)

{

if(akt_def->pred_position_begin > akt_def->pred_position_end)

{

printf("Predicate Definition : %d -- Error in pred_position_begin/end\n",count);

check_ok = FALSE;

}

if(akt_def->pred_start_position > akt_def->pred_end_position)

{

printf("Predicate Definition : %d -- Error in pred_start/end_position\n",count);

check_ok = FALSE;

}

if((!(is_add(akt_def->pred_add)) || (strcmp(akt_def->pred_add,"") == 0)))

{

printf("Predicate Definition : %d -- Error in pred_add\n",count);

check_ok = FALSE;

}

if(strcmp(akt_def->pred_pattern,"") == 0)

{

printf("Predicate Definition : %d -- Error in pred_pattern\n",count);

check_ok = FALSE;

}

if((akt_def->pred_position_begin == 0) || \

(akt_def->pred_position_end == 0) || \

(akt_def->pred_start_position == 0) || \

(akt_def->pred_end_position == 0) || \

(akt_def->pred_pattern_position == 0))

{

printf("Predicate Definition : %d -- Impossible value\n",count);

check_ok = FALSE;

}

Weitere Magazine dieses Users
Ähnliche Magazine