FreeLing  4.0
Classes | Public Member Functions | Private Attributes
freeling::compounds Class Reference

Class compounds implements a compound checker. More...

#include <compounds.h>

Collaboration diagram for freeling::compounds:
Collaboration graph
[legend]

List of all members.

Classes

class  pattern
 Auxiliary class to store a pattern. More...

Public Member Functions

 compounds (const std::wstring &, const dictionary &)
 Create a suffixed words analyzer.
 ~compounds ()
 Destroy a suffixed words analyzer.
bool check_compound (word &) const
 Check whether a word is a compound. Add analysis if it is.

Private Attributes

bool unknown_only
 whether only unknown words (vs all words) are checked for compounds
std::list< patternpatterns
 list of valid compound patterns (e.g.
foma_FSMfsm
 FSM to check for compounds.
const dictionarydic

Detailed Description

Class compounds implements a compound checker.


Constructor & Destructor Documentation

freeling::compounds::compounds ( const std::wstring &  ,
const dictionary  
)

Destroy a suffixed words analyzer.

Destructor.

References fsm.


Member Function Documentation


Member Data Documentation

Referenced by check_compound(), and compounds().

FSM to check for compounds.

Referenced by check_compound(), compounds(), and ~compounds().

std::list<pattern > freeling::compounds::patterns [private]

list of valid compound patterns (e.g.

NC_NC, NC_SP_NC, etc), with head position for each.

Referenced by check_compound(), and compounds().

whether only unknown words (vs all words) are checked for compounds

Referenced by check_compound(), and compounds().


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