public class DocumentExtraction extends Object
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
Modifier | Constructor and Description |
---|---|
protected |
DocumentExtraction()
Empty constructor needed for Hibernate compatibility.
|
protected |
DocumentExtraction(Document doc,
KnowledgeChunk exKc,
double weight,
String note)
Only constructor for
DocumentExtraction class. |
Modifier and Type | Method and Description |
---|---|
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. |
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 KCpublic 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.