# Source code for nlp_architect.data.sequence_classification

    # ******************************************************************************
    # Copyright 2017-2019 Intel Corporation
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    #     http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    # ******************************************************************************
    from __future__ import absolute_import, division, print_function

    from nlp_architect.data.utils import InputExample

    class SequenceClsInputExample(InputExample):
        """A single training/test example for simple sequence classification."""

        def __init__(self, guid: str, text: str, text_b: str = None, label: str = None):
            """Constructs a SequenceClassInputExample.
            Args:
                guid: Unique id for the example.
                text: string. The untokenized text of the first sequence. For single
                sequence tasks, only this sequence must be specified.
                text_b: (Optional) string. The untokenized text of the second sequence.
                Only must be specified for sequence pair tasks.
                label: (Optional) string. The label/tags of the example.
                This should be specified for train and dev examples, but not for test examples.
            """
            super(SequenceClsInputExample, self).__init__(guid, text, label)
            self.text_b = text_b