Main Page | Class List | File List | Class Members | Examples

ISentence Interface Reference

import "SynAn.idl";

List of all members.

Public Member Functions

HRESULT PrimitiveClausesCount ([out, retval] long *pVal)
HRESULT PrimitiveClause ([in] long lClauseNum,[out, retval] IClause **pVal)
HRESULT WordsNum ([out, retval] long *pVal)
HRESULT Word ([in] long lWordNum,[out, retval] IWord **pVal)
HRESULT ClausesCount ([out, retval] long *pVal)
HRESULT Clause ([in]long lClauseNum,[out, retval] IClause **pVal)
HRESULT CreateRelationsIterator ([out, retval] IRelationsIterator **piRelsIt)
HRESULT GetHomonymByClauseVar ([in]long iWord,[in]long iVar,[in]long iClause,[out, retval]IHomonym **piHom)
HRESULT ClauseNoByPrimitiveClauseNo ([in]long lPrClauseNo,[out, retval]long *lClauseNo)
HRESULT PrimitiveClauseNoByClauseNo ([in]long lClauseNo,[out, retval]long *lPrClauseNo)
HRESULT GetOborotStrByOborotId ([in] long OborotId,[out, retval] BSTR *pVal)


Detailed Description

A sentence provides an access to one input sentence. A sentence contains a vector of words and a set of clauses. A clause can be called a primitive or minimal one, if there is a word for which this clause is the smallest clause, which contains this word. In principle, it is possible to create a clause, which contains a one or more subclauses and and which does not immediately contain words. The interface supports two lists of clauses: the full list(slots ClausesCount and Clause) and the list of primitive clauses. There is a special function ("PrimitiveClauseNoByClauseNo") which returns an index in the full list by an index of primitive clauses. The interface also provides an access to IRelationsIterator, which contains a dependency forest for this sentence.


Member Function Documentation

HRESULT ISentence::Clause [in] long  lClauseNum,
[out, retval] IClause **  pVal
 

a clause by an index

HRESULT ISentence::ClauseNoByPrimitiveClauseNo [in] long  lPrClauseNo,
[out, retval] long *  lClauseNo
 

returns clause index by a primitive clause index

HRESULT ISentence::ClausesCount [out, retval] long *  pVal  ) 
 

the number of all clauses in the sentence

HRESULT ISentence::CreateRelationsIterator [out, retval] IRelationsIterator **  piRelsIt  ) 
 

returns a pointer to IRelationsIterator, which contains a dependency forest for this sentence

HRESULT ISentence::GetHomonymByClauseVar [in] long  iWord,
[in] long  iVar,
[in] long  iClause,
[out, retval] IHomonym **  piHom
 

returns homonym by a clause variant

HRESULT ISentence::GetOborotStrByOborotId [in] long  OborotId,
[out, retval] BSTR *  pVal
 

returns a string representation of an oborot by an ID

HRESULT ISentence::PrimitiveClause [in] long  lClauseNum,
[out, retval] IClause **  pVal
 

a primitive clause by an index

HRESULT ISentence::PrimitiveClauseNoByClauseNo [in] long  lClauseNo,
[out, retval] long *  lPrClauseNo
 

returns the primitive clause index by the clause index, if it is possible

HRESULT ISentence::PrimitiveClausesCount [out, retval] long *  pVal  ) 
 

the number of all primitive clauses

HRESULT ISentence::Word [in] long  lWordNum,
[out, retval] IWord **  pVal
 

a word by an index

HRESULT ISentence::WordsNum [out, retval] long *  pVal  ) 
 

the number of words in the sentence


The documentation for this interface was generated from the following file:
Generated on Tue Feb 7 15:38:49 2006 for Synan by  doxygen 1.4.4