Macro test_data_generation::factualize_entity [−][src]
macro_rules! factualize_entity { ( $entity:ident, $idx:ident ) => { ... }; }
This macro converts a char in an entity (&str) based on the index specified into a Fact
Arguments
entity: String
- The textual str of the value to anaylze.idx: u32
- The index that specifies the position of the char in the entity to convert to a Fact.
Example
# extern crate test_data_generation;
# fn main() {
//let fact = factualize_entity!("Word",0);
// will return a Fact that represents the char `W`
# }