Are you sure that you're not running out of memory? Just a suggestion.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-03-26
No, robert b is incorrect. hash_enter() has been called with a null string pointer for the key. See the code fragment below. But why? The immediately preceding INFO line may be a clue; there may be some kind of problem with the format of your filler lexicon -- a blank line, for example?
/*
* Add a new entry with given key and associated value to hash table h. The ke\
y must
* not already exist in the table.
*/
int32 hash_enter (hash_t h, char *key, void *val)
{
uint32 hash;
void *junk;
hash_entry_t *cur, *new;
assert ((h >= 0) && (h < n_table)); /* Must be a valid, active hash\
table */
assert (key != NULL);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
when I execute bw, this message appear:
INFO: main.c(326): Reading filler lexicon: ./etc/animal.filler
bw: hash.c:260: hash_enter: Assertion `key != ((void *)0)' failed.
./train.trn: line 62: 4350 Aborted ./bin/bw -moddeffn ./model_architecture/animalCI.mdef -ts2cbfn .cont. -mixwfn animal.mix -tmatfn animal.mat -meanfn animal.mean -varfn animal.var -dictfn ./etc/animal.dic -fdictfn ./etc/animal.filler -ctlfn ./etc/animal.fileids -part 1 -npart 3 -cepext feat -cepdir ./feat/ -lsnfn ./etc/animal.transcription -accumdir bwaccumdir -feat c/0..L-1/
how I can do?
Are you sure that you're not running out of memory? Just a suggestion.
No, robert b is incorrect. hash_enter() has been called with a null string pointer for the key. See the code fragment below. But why? The immediately preceding INFO line may be a clue; there may be some kind of problem with the format of your filler lexicon -- a blank line, for example?
/*
* Add a new entry with given key and associated value to hash table h. The ke\ y must
* not already exist in the table.
*/
int32 hash_enter (hash_t h, char *key, void *val)
{
uint32 hash;
void *junk;
hash_entry_t *cur, *new;
assert ((h >= 0) && (h < n_table)); /* Must be a valid, active hash\ table */
assert (key != NULL);