Class Keyphrase.Builder

Enclosing class:
Keyphrase

public static class Keyphrase.Builder extends BaseAttribute.Builder<Keyphrase,Keyphrase.Builder>
A builder for keyphrases
  • Constructor Details

    • Builder

      public Builder(String phrase, List<Extent> extents)
      Constructs a builder from the required properties
      Parameters:
      phrase - the name of the keyphrase
      extents - the list of extents marking offsets for each mention of the keyphrase in the text
    • Builder

      public Builder(Keyphrase toCopy)
      Constructs a builder out of an existing Keyphrase
      Parameters:
      toCopy - the keyphrase to copy
  • Method Details