Edinburgh Speech Tools 2.4-release
EST_bracketed_string Class Reference

#include <include/EST_SCFG.h>

Public Member Functions

 EST_bracketed_string (LISP string)
 
void set_bracketed_string (LISP string)
 
int length () const
 
LISP string () const
 
const EST_String symbol_at (int i) const
 The nth symbol in the string. More...
 
int valid (int i, int k) const
 If a bracketing from i to k is valid in string. More...
 
int operator!= (const EST_bracketed_string &a) const
 
int operator== (const EST_bracketed_string &a) const
 

Friends

ostream & operator<< (ostream &s, const EST_bracketed_string &a)
 

Detailed Description

This class represents a bracketed string used in training of SCFGs.

An object in this class builds an index of valid bracketing of the string, thus offering both a tree like access and direct access to the leafs of the tree. The definition of `‘valid bracketing’' is any substring [ W_{i,j} ] that doesn't cross any brackets.

Definition at line 56 of file EST_SCFG.h.

Constructor & Destructor Documentation

◆ EST_bracketed_string() [1/2]

EST_bracketed_string::EST_bracketed_string ( )

Definition at line 87 of file EST_SCFG_inout.cc.

◆ EST_bracketed_string() [2/2]

EST_bracketed_string::EST_bracketed_string ( LISP  string)

Definition at line 92 of file EST_SCFG_inout.cc.

◆ ~EST_bracketed_string()

EST_bracketed_string::~EST_bracketed_string ( )

Definition at line 99 of file EST_SCFG_inout.cc.

Member Function Documentation

◆ set_bracketed_string()

void EST_bracketed_string::set_bracketed_string ( LISP  string)

Definition at line 110 of file EST_SCFG_inout.cc.

◆ length()

int EST_bracketed_string::length ( ) const
inline

Definition at line 78 of file EST_SCFG.h.

◆ string()

LISP EST_bracketed_string::string ( ) const
inline

Definition at line 80 of file EST_SCFG.h.

◆ symbol_at()

const EST_String EST_bracketed_string::symbol_at ( int  i) const
inline

The nth symbol in the string.

Definition at line 82 of file EST_SCFG.h.

◆ valid()

int EST_bracketed_string::valid ( int  i,
int  k 
) const
inline

If a bracketing from i to k is valid in string.

Definition at line 85 of file EST_SCFG.h.

◆ operator!=()

int EST_bracketed_string::operator!= ( const EST_bracketed_string a) const
inline

Definition at line 88 of file EST_SCFG.h.

◆ operator==()

int EST_bracketed_string::operator== ( const EST_bracketed_string a) const
inline

Definition at line 90 of file EST_SCFG.h.

Friends And Related Function Documentation

◆ operator<<

ostream & operator<< ( ostream &  s,
const EST_bracketed_string a 
)
friend

Definition at line 93 of file EST_SCFG.h.


The documentation for this class was generated from the following files: