//
// 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; }
};
}