Package ai.rev.topicextraction.models
Class Topic
- java.lang.Object
-
- ai.rev.topicextraction.models.Topic
-
public class Topic extends Object
Represents a single topic in the input as well as all the information that comes with it.
-
-
Constructor Summary
Constructors Constructor Description Topic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Informant>getInformants()Returns the informants.DoublegetScore()Returns the score.StringgetTopicName()Returns the topic name.voidsetInformants(List<Informant> informants)Specifies the list of informants.voidsetScore(Double score)Specifies the score.voidsetTopicName(String topicName)Specifies the topic name.
-
-
-
Method Detail
-
getTopicName
public String getTopicName()
Returns the topic name.- Returns:
- The topic name.
-
setTopicName
public void setTopicName(String topicName)
Specifies the topic name.- Parameters:
topicName- the topic name.
-
getScore
public Double getScore()
Returns the score.- Returns:
- The score.
-
setScore
public void setScore(Double score)
Specifies the score.- Parameters:
score- score of the topic.
-
getInformants
public List<Informant> getInformants()
Returns the informants.- Returns:
- The list of informants.
- See Also:
Informant
-
-