Add cost calculation
This commit is contained in:
parent
c066168831
commit
54d3831094
14 changed files with 136 additions and 16 deletions
|
|
@ -242,7 +242,7 @@ void setjrec(SJ4_CONTEXT u_char* tagp, int mode) {
|
|||
rec->jseg = prevseg;
|
||||
rec->jofsst = ptr - dicbuf;
|
||||
rec->jofsed = tmp - dicbuf;
|
||||
rec->class = C_DICT;
|
||||
rec->jclass = C_DICT;
|
||||
rec->dicid = curdict->dicid;
|
||||
rec->hinsi = gram;
|
||||
rec->sttofs = headcode;
|
||||
|
|
@ -323,6 +323,6 @@ void setcrec(SJ4_CONTEXT u_char* tagp) {
|
|||
if(!(rec = argjrec(SJ4_CONTEXT_PASS(int) ClYomiLen(tagp), (JREC*)NULL))) return;
|
||||
|
||||
rec->jofsst = tagp - CLSTUDYDICT;
|
||||
rec->class = C_BUNSETU;
|
||||
rec->jclass = C_BUNSETU;
|
||||
rec->hinsi = ClGramCode(tagp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue