Frog
Functions | Variables
FrogData.cxx File Reference
#include <iostream>
#include <iomanip>
#include "ticcutils/PrettyPrint.h"
#include "ticcutils/StringOps.h"
#include "frog/FrogData.h"
#include "frog/mbma_brackets.h"
Include dependency graph for FrogData.cxx:

Functions

ostream & operator<< (ostream &os, const frog_record &fr)
 
frog_record merge (const frog_data &fd, size_t start, size_t finish)
 
ostream & operator<< (ostream &os, const frog_data &fd)
 

Variables

const string TAB = "\t"
 

Function Documentation

◆ merge()

frog_record merge ( const frog_data fd,
size_t  start,
size_t  finish 
)

merge a range of records of an frog_data structure into the first one

Parameters
fdthe frog_data structure
startindex of the first record in the structure to merge
finishindex of the last record in the structure to merge
Returns
the new merged record

all information from the records start +1 to finish is merged into the record at position start. Strings are concatenated using an underscore ('_') which is the way Frog has always displayed MWU's

Note
merging is only done for the first (default) lemma and morpheme

◆ operator<<() [1/2]

ostream& operator<< ( ostream &  os,
const frog_data fd 
)

output a frog_data structure to a stream

Parameters
osoutput stream
fdthe record to output
Returns
the stream

◆ operator<<() [2/2]

ostream& operator<< ( ostream &  os,
const frog_record fr 
)

output a frog_record structure to a stream

Parameters
osoutput stream
frthe record to output
Returns
the stream

Variable Documentation

◆ TAB

const string TAB = "\t"