de.datexis.sector.model.WikiDocument Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of texoo-sector Show documentation
Show all versions of texoo-sector Show documentation
TeXoo module for Topic Segmentation and Classification (SECTOR)
package de.datexis.sector.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import de.datexis.model.Document;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Extension of Document to include a dedicated Abstract section.
* @author Sebastian Arnold
*/
@JsonPropertyOrder({ "id", "type", "title", "abstract", "text", "annotations" })
@JsonIgnoreProperties({"begin", "length", "language"})
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "class", defaultImpl=WikiDocument.class)
public class WikiDocument extends Document {
protected final static Logger log = LoggerFactory.getLogger(WikiDocument.class);
protected String abstr;
public String getAbstract() {
return abstr;
}
public void setAbstract(String abstr) {
this.abstr = abstr;
}
}