Replaces tokens made by tokenise() - for example in a model's answer -
with the values they stand for. Tokens are recognised with any letter
case, with spaces inside the brackets ([ pan_1 ]) and without brackets
(PAN_1), because models do not always copy them exactly. Tokens the
vault does not know are left unchanged.
Arguments
- text
A character vector.
- vault
The vault used by
tokenise().- strict
If
TRUE, it is an error whentextcontains a bracketed token the vault does not know (one the model invented or altered).