Class NameSample

    • Field Detail

      • DEFAULT_TYPE

        public static final String DEFAULT_TYPE
        The a default type value when there is no type in training data.
        See Also:
        Constant Field Values
    • Constructor Detail

      • NameSample

        public NameSample​(String id,
                          String[] sentence,
                          Span[] names,
                          String[][] additionalContext,
                          boolean clearAdaptiveData)
      • NameSample

        public NameSample​(String[] sentence,
                          Span[] names,
                          String[][] additionalContext,
                          boolean clearAdaptiveData)
        Initializes the current instance.
        Parameters:
        sentence - training sentence
        names -
        additionalContext -
        clearAdaptiveData - if true the adaptive data of the feature generators is cleared
      • NameSample

        public NameSample​(String[] sentence,
                          Span[] names,
                          boolean clearAdaptiveData)