Interface RetokenizeRunner.ReviewerFactory

Enclosing class:
RetokenizeRunner
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface RetokenizeRunner.ReviewerFactory
Factory that wires the typed beans (tag provider, tokenizer, feature extractor, optional CRF tagger) into a RetokenizeReviewer.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(RetokenizeConfiguration configuration, org.jline.terminal.Terminal terminal)
    Constructs a reviewer from the configuration and the JLine terminal opened by the runner.
  • Method Details

    • create

      RetokenizeReviewer<?,?> create(RetokenizeConfiguration configuration, org.jline.terminal.Terminal terminal)
      Constructs a reviewer from the configuration and the JLine terminal opened by the runner.
      Parameters:
      configuration - the parser-free retokenize configuration
      terminal - the JLine terminal to install on the reviewer's tagging interface; ownership remains with the runner
      Returns:
      a configured reviewer ready to review