Package ai.rev.topicextraction.models
Class Informant
- java.lang.Object
-
- ai.rev.topicextraction.models.Informant
-
public class Informant extends Object
Represents a piece of the input which informed a choice of a topic.
-
-
Constructor Summary
Constructors Constructor Description Informant()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContent()Returns the content of the informantDoublegetEndTimestamp()Returns the end timestamp of the content in the inputIntegergetLength()Returns the character length of the contentIntegergetOffset()Returns the character index at which the content started in the inputDoublegetStartTimestamp()Returns the start timestamp of the content in the inputvoidsetContent(String content)Sets the content of the informantvoidsetEndTimestamp(Double endTimestamp)Sets the end timestamp of the content in the inputvoidsetLength(Integer length)Sets the character length of the contentvoidsetOffset(Integer offset)Sets the character index at which the content started in the inputvoidsetStartTimestamp(Double startTimestamp)Sets the start timestamp of the content in the input
-
-
-
Method Detail
-
getContent
public String getContent()
Returns the content of the informant- Returns:
- the content of the informant
-
setContent
public void setContent(String content)
Sets the content of the informant- Parameters:
content- content to be set
-
getStartTimestamp
public Double getStartTimestamp()
Returns the start timestamp of the content in the input- Returns:
- the start timestamp of the content in the input
-
setStartTimestamp
public void setStartTimestamp(Double startTimestamp)
Sets the start timestamp of the content in the input- Parameters:
startTimestamp- the start timestamp to be set
-
getEndTimestamp
public Double getEndTimestamp()
Returns the end timestamp of the content in the input- Returns:
- the end timestamp of the content in the input
-
setEndTimestamp
public void setEndTimestamp(Double endTimestamp)
Sets the end timestamp of the content in the input- Parameters:
endTimestamp- the end timestamp to be set
-
getOffset
public Integer getOffset()
Returns the character index at which the content started in the input- Returns:
- the character index at which the content started in the input
-
setOffset
public void setOffset(Integer offset)
Sets the character index at which the content started in the input- Parameters:
offset- the character index to be set
-
getLength
public Integer getLength()
Returns the character length of the content- Returns:
- the character length of the content
-
setLength
public void setLength(Integer length)
Sets the character length of the content- Parameters:
length- the character length to be set
-
-