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

Class predicate stores a predicate and its arguments. More...

#include <language.h>

Inheritance diagram for freeling::predicate:
Inheritance graph
[legend]
Collaboration diagram for freeling::predicate:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 predicate ()
 ~predicate ()
 predicate (int p, const std::wstring &s)
 predicate (const predicate &)
 Copy constructor.
predicateoperator= (const predicate &)
 assignment
const std::wstring & get_sense () const
 get the propbank sense of the predicate
int get_position () const
 get the position of the predicate head
bool has_argument (int p) const
 check whether word in position p is an argument to the predicate
void add_argument (int p, const std::wstring &r)
 add new argument to the predicate
const argumentget_argument_by_pos (int p) const
 get access to an argument by word position

Private Attributes

std::map< int, intarg_index
int position
std::wstring sense

Detailed Description

Class predicate stores a predicate and its arguments.


Constructor & Destructor Documentation

freeling::predicate::predicate ( int  p,
const std::wstring &  s 
)

Copy constructor.

References arg_index, position, and sense.


Member Function Documentation

void freeling::predicate::add_argument ( int  p,
const std::wstring &  r 
)

add new argument to the predicate

add argument to predicate

References arg_index.

get access to an argument by word position

References arg_index, and position.

get the position of the predicate head

References position.

Referenced by freeling::sentence::add_predicate().

const wstring & freeling::predicate::get_sense ( ) const

get the propbank sense of the predicate

References sense.

check whether word in position p is an argument to the predicate

References arg_index.

predicate & freeling::predicate::operator= ( const predicate p)

assignment

References arg_index, position, and sense.


Member Data Documentation

std::map<int,int> freeling::predicate::arg_index [private]
std::wstring freeling::predicate::sense [private]

Referenced by get_sense(), operator=(), and predicate().


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