Class SimpleConstituentFactory

  • All Implemented Interfaces:
    ConstituentFactory

    public class SimpleConstituentFactory
    extends Object
    implements ConstituentFactory
    A ConstituentFactory acts as a factory for creating objects of class Constituent, or some descendent class. An interface.
    Author:
    Christopher Manning
    • Constructor Detail

      • SimpleConstituentFactory

        public SimpleConstituentFactory()
    • Method Detail

      • newConstituent

        public Constituent newConstituent​(int start,
                                          int end,
                                          Label label,
                                          double score)
        Description copied from interface: ConstituentFactory
        Build a constituent with this start and end.
        Specified by:
        newConstituent in interface ConstituentFactory
        Parameters:
        start - Start position
        end - End position
        label - Label
        score - Score