Some parts of this website may do not work correctly, because your browser doesn't support JavaScript or you have disabled it. In order to use all features please enable JavaScript in your browser.

Specification for annotator > lexicon > mapper

mapper

Universal lexicon for generic mapping tasks. Uses the following text file format:

key value_text [value_category [value_feature1,value_feature2,...,value_featureN]]

Whitespace separates fields. Value category and value features are optional, but value features imply and require the use of value categories. Value features are separated by ,. The number of value_features is not restricted. Value features of the form key=value are split accordingly, value features of the form value are treated as value=1.

Complex keys use , as a separator. In complex keys text precedes category and category precedes attributes. Attribute lists need to be sorted in a locale-neutral way.

Options

Allowed options:
  --lang arg (=guess)          language
  --force-language             force using specified language even if a text 
                               was resognised otherwise
  --in-tags arg                map edges container all specified tags
  --out-tags arg               add tags to mapped edges
  --consider-text              consider text for key creation
  --consider-category          consider category for key creation
  --consider-attributes        consider attributes (sorted) for key creation
  --clone-text                 clone original text to mapped edge
  --clone-category             clone original category to mapped edge
  --clone-attributes           clone original attributes to mapped edge
  --unknown-clone-text         clone original text to mapped edge for unknown 
                               keys
  --unknown-clone-category     clone original category to mapped edge for 
                               unknown keys
  --unknown-clone-attributes   clone original attributes to mapped edge for 
                               unknown keys
  --set-text arg               set mapped edge text
  --set-category arg           set mapped edge category
  --set-attributes arg         set mapped edge attributes
  --unknown-set-text arg       set mapped edge text for unknown keys
  --unknown-set-category arg   set mapped edge category for unknown keys
  --unknown-set-attributes arg set mapped edge attributes for unknown keys
  --add-attributes             add attributes from lexicon to mapped edge
  --binary-lexicon arg         path to the lexicon in the binary format
  --plain-text-lexicon arg     path to the lexicon in the plain text format
  --save-binary-lexicon arg    as a side effect the lexicon in the binary 
                               format is generated

Other help resources