|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dico.islab.idbs2.kc.DocumentExtraction
public class DocumentExtraction
Representation of an extraction process as a link between a KnowledgeChunk and
a Document. This class is effectively a representation of the relation kc.extracted.

Document,
KnowledgeChunk| Constructor Summary | |
|---|---|
protected |
DocumentExtraction()
Empty constructor needed for Hibernate compatibility. |
protected |
DocumentExtraction(Document doc,
KnowledgeChunk exKc,
double weight,
String note)
Only constructor for DocumentExtraction class. |
| Method Summary | |
|---|---|
Integer |
getCode()
Getter for the code field. |
Document |
getDocument()
Getter for the document field. |
KnowledgeChunk |
getExtractedKc()
Getter for the kc field. |
int |
getId()
Getter for the correspondent kc.extracted table row. |
String |
getNote()
Getter for the note field. |
Double |
getWeight()
Getter for the weight field. |
void |
setCode(Integer code)
Setter for the code field. |
protected void |
setDocument(Document document)
Setter for the document field. |
protected void |
setExtractedKc(KnowledgeChunk kc)
Setter for the kc field. |
void |
setNote(String note)
Setter for the note field. |
void |
setWeight(Double weight)
Setter for the weight field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DocumentExtraction()
KowledgeChunk
.addDocument instead.
KnowledgeChunk.addDocument(Document)
protected DocumentExtraction(Document doc,
KnowledgeChunk exKc,
double weight,
String note)
Only constructor for DocumentExtraction class. Direct use is discouraged:
use the KnowledgeChunk.addDocument instead.
doc - the origin of the extraction (represented by a Document object).exKc - the extracted knowledge chunk (represented by a KnowledgeChunk object).weight - the weight (importance) of this KC with reference to this extraction (usually used for
the importance of the properties)note - a textual annotation about the extraction of this KC| Method Detail |
|---|
public int getId()
Getter for the correspondent kc.extracted table row. Used by Hibernate.
public Document getDocument()
Getter for the document field.
protected void setDocument(Document document)
Setter for the document field. Direct use normally not needed: use
KnowledgeChunk.addDocument instead.
document - the document, origin of the extraction represented by an instance of this class.KnowledgeChunk.addDocument(Document)public KnowledgeChunk getExtractedKc()
Getter for the kc field.
protected void setExtractedKc(KnowledgeChunk kc)
Setter for the kc field. Direct use normally not needed: use
KnowledgeChunk.addDocument instead.
kc - the knowledge chunk, subject of the extraction represented by an instance of this class.KnowledgeChunk.addDocument(Document)public Double getWeight()
Getter for the weight field. Representation of the weight associated to this extraction.
public void setWeight(Double weight)
Setter for the weight field. Representation of the weight associated to this extraction.
weight - the weight of this extraction.public Integer getCode()
Getter for the code field.
public void setCode(Integer code)
Setter for the code field.
code - the code of this extraction.public String getNote()
Getter for the note field. Could contain usefull information about this extraction.
public void setNote(String note)
Setter for the note field. Could contain usefull information about this extraction.
note - extraction notes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||