@@ -726,10 +726,9 @@ fn main() {
|
||||
);
|
||||
|
||||
// Build the embedding table once for the whole corpus, if asked for.
|
||||
let embeddings: Option<EmbeddingMap> = match weights_dir.as_deref() {
|
||||
None => None,
|
||||
Some(dir) => Some(load_embeddings(dir, &questions)),
|
||||
};
|
||||
let embeddings: Option<EmbeddingMap> = weights_dir
|
||||
.as_deref()
|
||||
.map(|dir| load_embeddings(dir, &questions));
|
||||
if embeddings.is_none() && weights_dir.is_some() {
|
||||
eprintln!("warning: --embeddings ignored (build with --features embeddings)");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user