code: function generateCodebook() {
  
      var codebook = {};
      reverse_codebook.forEach(function (value, i) {
          codebook[value] = i;
      });
  
      return codebook;
  }
docs: Generate the codebook from the reverse_codebook.
  @return {[string]} The codebook