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