Function recoreco::io::write_indicators
source · pub fn write_indicators(
indicators: &[FnvHashSet<u32>],
renaming: &Renaming,
indicators_path: Option<String>
) -> Result<()>
Expand description
Output the computed indicators in JSON format, using the original identifiers from the
inputfile. If an indicators_path
is supplied, we write to a file at the specified path,
otherwise, we output to stdout. Each line holds a JSON representation
{ "for_item": "michael jackson", "indicated_items": ["justin timberlake", "queen"] }