https://github.com/Microsoft/CNTK
Raw File
Tip revision: 4656a1b3aa5058ab06ffb5a7f764c0ba10379ace authored by Spandan Tiwari on 20 October 2017, 20:09:56 UTC
Removing printing of min max values.
Tip revision: 4656a1b
UtteranceDescription.h
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//

#pragma once

#include "DataDeserializer.h"
#include "HTKFeaturesIO.h"

namespace CNTK {

// This class represents a descriptor for a single utterance.
// It is only used internally by the HTK deserializer.
class UtteranceDescription
{
    // Archive filename and frame range in that file.
    htkfeatreader::parsedpath m_path;

    // Utterance id.
    size_t m_id;

public:
    UtteranceDescription(htkfeatreader::parsedpath&& path)
        : m_path(std::move(path)), m_id(0)
    {
    }

    const htkfeatreader::parsedpath& GetPath() const
    {
        return m_path;
    }

    uint32_t GetNumberOfFrames() const
    {
        return m_path.numframes();
    }

    size_t GetId() const  { return m_id; }
    void SetId(size_t id) { m_id = id; }
};

}
back to top