package com.formulasearchengine.mathosphere.mlp.pojos; import com.google.common.collect.Multiset; import java.util.List; import java.util.Set; import static com.formulasearchengine.mathosphere.mlp.pojos.StringEntry.fromSet; public class WikiDocumentOutput { private String title; public String getqId() { return qId; } public void setqId(String qId) { this.qId = qId; } private String qId; private List<Relation> relations; private Set<StringEntry> identifiers; public double getMaxSentenceLength() { return maxSentenceLength; } public void setMaxSentenceLength(double maxSentenceLength) { this.maxSentenceLength = maxSentenceLength; } /** * The length of the longest sentence in this document. */ private double maxSentenceLength; public boolean isSuccess() { return success; } private boolean success = true; public WikiDocumentOutput() { } public WikiDocumentOutput(boolean s) { this.success = s; } public WikiDocumentOutput(String title, List<Relation> relations, Multiset<String> identifiers) { this(title, null, relations, identifiers); } public WikiDocumentOutput(String title, String qId, List<Relation> relations, Multiset<String> identifiers) { this.title = title; this.qId = qId; this.relations = relations; if (identifiers != null) this.identifiers = fromSet(identifiers.entrySet()); } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public List<Relation> getRelations() { return relations; } public void setRelations(List<Relation> relations) { this.relations = relations; } public Set<StringEntry> getIdentifiers() { return identifiers; } public void setIdentifiers(Set<StringEntry> identifiers) { this.identifiers = identifiers; } }