INNER CODE UNIT · Rust

Some

rlaope/estudy · site/graph/crates/graph-wasm/src/lib.rs:207

            if let Some(p) = node.title.find(q) {
                score = if p == 0 {
                    400
                } else if word_start(&node.title, p) {
                    300
                } else {
                    200
                };
            } else if q_is_jamo {
                if let Some(p) = node.cho_tight.find(q_tight.as_str()) {
                    score = if p == 0 { 160 } else { 120 };
                } else if node.cho.find(q).is_some() {
                    score = 110;
                }
            } else if q_has_syl && node.cho_tight.find(q_cho.as_str()).is_some() {
                score = 80;
            }
            if score == 0 && tokens.len() > 1 {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…