Main Page | Modules | Namespace List | Compound List | File List | Compound Members | File Members | Related Pages

JXDictionary Class Reference
[LeJa]

prepares dictionary lookup indexing table More...

#include <JXDictionary.h>

List of all members.

Public Member Functions

 JXDictionary (char *)
 constructor

 ~JXDictionary ()
 default destructor

bool MapDictionary ()
 reads a dictionary index file into a map

bool loadDictionary ()
 funtion to prepare the dictionary lookup

stack< JXDictionaryEntry * > LookUp (const string)
 Looks up a word in the dictionary and returns the line in the dictionary as a string (S-JIS).

bool SetGram (UMString &)

Private Types

typedef multimap< string,
long >::iterator 
MI

Private Attributes

XMLReaderm_reader
multimap< string, long > m_XDictionary


Detailed Description

prepares dictionary lookup indexing table

Author:
Torben Pastuch superbaer@t-online.de Iris Vogel iris@urz.uni-heidelberg.de
Date:
Aug 2003
Version:
0.8/15
See also:
JXDictionary.h


Member Typedef Documentation

typedef multimap<string, long>::iterator JXDictionary::MI [private]
 

iterator for m_XDictionary multimap


Constructor & Destructor Documentation

JXDictionary::JXDictionary char *  dicfile  ) 
 

constructor

Parameters:
name of the dictionary table file for lookup

JXDictionary::~JXDictionary  ) 
 

default destructor


Member Function Documentation

bool JXDictionary::loadDictionary  ) 
 

funtion to prepare the dictionary lookup

reads indexing table from file writes the entries of lemmas and readings and their position in the XML-dictionary into an index-file

Warning:
this is used only for preparatory purposes, run once after changing the XML-dictionary file because the postiton of the entries might have changed

stack< JXDictionaryEntry * > JXDictionary::LookUp const string  LookUpString  ) 
 

Looks up a word in the dictionary and returns the line in the dictionary as a string (S-JIS).

Parameters:
LookUpString Word to look up in the dictionary
Returns:
(string) the corresponding line in the dictionary

bool JXDictionary::MapDictionary  ) 
 

reads a dictionary index file into a map

Returns:
true if the mapping succeeded
Todo:
overload function to make input of a different map-file possible

bool JXDictionary::SetGram UMString  ) 
 


Member Data Documentation

XMLReader* JXDictionary::m_reader [private]
 

pointer to XML file reader object

multimap<string, long> JXDictionary::m_XDictionary [private]
 

multimap for storing multiple lemma - position in file pairs


The documentation for this class was generated from the following files:
Generated on Mon Aug 18 19:27:10 2003 for LeJa by doxygen 1.3.3