code: public final List<SequenceLabel> getSequencesFromSpans(final String[] tokens,
        final Span[] seqSpans) {
      final List<SequenceLabel> sequences = new ArrayList<SequenceLabel>();
      for (final Span seqSpan : seqSpans) {
        final String seqString = seqSpan.getCoveredText(tokens);
        final String seqType = seqSpan.getType();
        final SequenceLabel sequence = this.sequenceFactory
            .createSequence(seqString, seqType, seqSpan);
        sequences.add(sequence);
      }
      return sequences;
    }
docs: Creates a list of {@link SequenceLabel} objects from spans and tokens.
  
  @param seqSpans
  the sequence spans of a sentence
  @param tokens
  the tokens in the sentence
  @return a list of {@link SequenceLabel} objects