dragon.ir.kngbase
Class BasicKnowledgeBase

java.lang.Object
  |
  +--dragon.ir.kngbase.BasicKnowledgeBase
All Implemented Interfaces:
KnowledgeBase

public class BasicKnowledgeBase
extends java.lang.Object
implements KnowledgeBase

Basic knowledge base

Copyright: Copyright (c) 2005

Company: IST, Drexel University

Version:
1.0
Author:
Davis Zhou

Constructor Summary
BasicKnowledgeBase(DoubleSparseMatrix transMatrix, SimpleElementList rowKeyList, SimpleElementList columnKeyList)
           
 
Method Summary
 SimpleElementList getColumnKeyList()
           
 DoubleSparseMatrix getKnowledgeMatrix()
          A knowledge matrix saves the semantic relationships between various concepts.
 SimpleElementList getRowKeyList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicKnowledgeBase

public BasicKnowledgeBase(DoubleSparseMatrix transMatrix,
                          SimpleElementList rowKeyList,
                          SimpleElementList columnKeyList)
Method Detail

getKnowledgeMatrix

public DoubleSparseMatrix getKnowledgeMatrix()
Description copied from interface: KnowledgeBase
A knowledge matrix saves the semantic relationships between various concepts. For example, a row may stand for a multiword phrase, e.g. space program and a column denote a signle word. Thus a cell in the matrix may be interpreted as the probability of the phrase beging translated to the single word semantically.

Specified by:
getKnowledgeMatrix in interface KnowledgeBase
Returns:
the knowledge matrix

getRowKeyList

public SimpleElementList getRowKeyList()
Specified by:
getRowKeyList in interface KnowledgeBase
Returns:
a list of concept names corresponding to each row

getColumnKeyList

public SimpleElementList getColumnKeyList()
Specified by:
getColumnKeyList in interface KnowledgeBase
Returns:
a list of concept names corresponding to each column