Parse Analysis and Generation of Turkish Words  v1.0
Gram tests on Turkish word morphology and generating words from parsed words using foma and TRmorph.
Public Member Functions | Friends
NGram Class Reference

List of all members.

Public Member Functions

 NGram ()
void setPrintSize (unsigned int n)
void sort ()
void printRoot (int index)
std::vector< std::string > selectRoot (int selectTopNumber)
std::vector< std::string > selectAppendix (std::string rootPart, int selectFromTop)
int checkItOut (std::deque< std::string > queue, std::string root)

Friends

std::ostream & operator<< (std::ostream &os, const NGram &gr)

Constructor & Destructor Documentation

NGram Constructor


Member Function Documentation

int NGram::checkItOut ( std::deque< std::string >  queue,
std::string  root 
)

Analyses given POS Tag queue and root.

Parameters:
queueCombination of POS Tags
rootWord's root
Returns:
Returns 1 if class contains queue, otherwise 0
void NGram::printRoot ( int  index)

Prints word root of given POS Tag index

Parameters:
indexPOS Tag index
std::vector< std::string > NGram::selectAppendix ( std::string  rootPart,
int  selectFromTop 
)

Selects appendix randomly. Randomly chooses between most found one and selectFromTop one. It also checks whether rootPart proper or not.

Parameters:
rootPartPOS Tag of root(1Gr)
selectFromTopRandom selector from top nth
Returns:
Returns appendix for generating word
std::vector< std::string > NGram::selectRoot ( int  selectTopNumber)

Selects word root using parse analysis knowledge. Randomly chooses between most found one and selectTopNumber one.

Parameters:
selectTopNumberRandom selector from top nth
Returns:
Returns root and root's POS Tag(1Gr)
void NGram::setPrintSize ( unsigned int  n)

Sets print size of class

Parameters:
nNumber of print size
void NGram::sort ( )

Sorts datas using bubblesort


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const NGram gr 
) [friend]

Overload of "<<" operator.

Parameters:
osOutput stream
grNGram instance
Returns:
Returns output stream

The documentation for this class was generated from the following files:
 All Classes Files Functions Friends