Crate mmi_parser
source · [−]Expand description
This crate exists to support the primary functions of the MMI parser command line tool.
The primary reference for the field information is found here and relies on MetaMap 2016 or newer.
The main functionality is encompassed in MmiOutput and parse_mmi.
For questions on implementations of the parsing algorithms for specific sections, please consult the source which contains well-labeled and fairly documented functions to parse each type.
Structs
Main struct for entire library. Represents an entire fielded MMI record as one type.
Structure for Position representing start index, length, and Position Type.
Struct to represent Trigger information.
Enums
Enumeration for Location options.
Positional Information type options
Functions
A better alternative to MmiOutput::new
Takes a string reference, splits it on vertical bar (pipe) characters,
labels each item with its corresponding field name,
passes labeled data into MmiOutput::new.