Menu

bw help

Help
Anonymous
2003-03-26
2012-09-22
  • Anonymous

    Anonymous - 2003-03-26

    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?

     
    • robert b

      robert b - 2003-03-26

      Are you sure that you're not running out of memory?  Just a suggestion.

       
    • Anonymous

      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);

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.