#include <sent/stddefs.h>
#include <sent/ngram2.h>
Include dependency graph for ngram_access.c:

Go to the source code of this file.
Functions | |
| NNID | search_bigram (NGRAM_INFO *ndata, WORD_ID w_l, WORD_ID w_r) | 
| static NNID | search_trigram_v3 (NGRAM_INFO *ndata, NNID n2, WORD_ID wkey) | 
| static NNID | search_trigram_v4 (NGRAM_INFO *ndata, NNID n2, WORD_ID wkey) | 
| LOGPROB | uni_prob (NGRAM_INFO *ndata, WORD_ID w) | 
| LOGPROB | bi_prob_lr (NGRAM_INFO *ndata, WORD_ID w1, WORD_ID w2) | 
| LOGPROB | bi_prob_rl (NGRAM_INFO *ndata, WORD_ID w1, WORD_ID w2) | 
| LOGPROB | tri_prob_rl (NGRAM_INFO *ndata, WORD_ID w1, WORD_ID w2, WORD_ID w3) | 
Definition in file ngram_access.c.
      
  | 
  ||||||||||||||||
| 
 Search for 2-gram tuple (w_l, w_r) in the 2-gram part of N-gram. 
 
 
 Definition at line 39 of file ngram_access.c. Referenced by add_bigram_rl(), bi_prob_lr(), bi_prob_rl(), set_trigram(), and tri_prob_rl().  | 
  
      
  | 
  ||||||||||||||||
| 
 Search for a reverse 3-gram tuple (wkey, w1, w2), where the context 2-gram tuple (w1, w2) should exist on 2-gram data part at n2. (for v3 struture format) 
 
 
 Definition at line 77 of file ngram_access.c. Referenced by tri_prob_rl().  | 
  
      
  | 
  ||||||||||||||||
| 
 Search for a reverse 3-gram tuple (wkey, w1, w2), where the context 2-gram tuple (w1, w2) should exist on 2-gram data part at n2. (for v4 struture format) 
 
 
 Definition at line 115 of file ngram_access.c. Referenced by tri_prob_rl().  | 
  
      
  | 
  ||||||||||||
| 
 
Get 1-gram probability of  
 
 
 Definition at line 154 of file ngram_access.c. Referenced by build_wchmm2(), calc_all_unigram_factoring_values(), get_nbest_uniprob(), max_successor_prob(), and pick_backtrellis_words().  | 
  
      
  | 
  ||||||||||||||||
| 
 
Get LR 2-gram probability of word/class sequence  
 
 
 Definition at line 175 of file ngram_access.c. Referenced by max_successor_prob(), and max_successor_prob_iw().  | 
  
      
  | 
  ||||||||||||||||
| 
 
Get RL 2-gram probability of word/class sequence  
 
 
 Definition at line 206 of file ngram_access.c. Referenced by pick_backtrellis_words(), and tri_prob_rl().  | 
  
      
  | 
  ||||||||||||||||||||
| 
 
Get RL 3-gram probability of word/class sequence  
 
 
 Definition at line 239 of file ngram_access.c. Referenced by pick_backtrellis_words().  | 
  
 1.4.2