You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const ac = new AhoCorasick(['he', 'his']);
// stringify and save it.
const str = JSON.stringify(ac);
// read the string and parse it.
const savedObj = JSON.parse(str);
// initialize a new object
let ac2 = new AhoCorasick([]);
// overwrite the attributes within ac2
ac2 = Object.assign(ac2, savedObj);
let result = ac2.search('he is his wife');
I have a very big application and I want to save the computed tree to a file. How can I do that?
The text was updated successfully, but these errors were encountered: