public class ParaphraserImpl extends Object implements Paraphraser, Comparator<org.aksw.gerbil.transfer.nif.data.NamedEntity>
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER |
protected ParaphraseService |
service |
| Constructor and Description |
|---|
ParaphraserImpl(ParaphraseService service) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(org.aksw.gerbil.transfer.nif.data.NamedEntity n1,
org.aksw.gerbil.transfer.nif.data.NamedEntity n2)
Sorts Named entities descending by their length.
|
org.aksw.gerbil.transfer.nif.Document |
getParaphrase(org.aksw.gerbil.transfer.nif.Document doc,
String dictPath)
This method paraphrases the given document and returns a document with
the paraphrased text and updated named entities.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprivate static final org.slf4j.Logger LOGGER
protected ParaphraseService service
public ParaphraserImpl(ParaphraseService service)
public org.aksw.gerbil.transfer.nif.Document getParaphrase(org.aksw.gerbil.transfer.nif.Document doc,
String dictPath)
ParaphrasergetParaphrase in interface Paraphraserdoc - the Document that should be paraphrasedpublic int compare(org.aksw.gerbil.transfer.nif.data.NamedEntity n1,
org.aksw.gerbil.transfer.nif.data.NamedEntity n2)
compare in interface Comparator<org.aksw.gerbil.transfer.nif.data.NamedEntity>Copyright © 2020. All rights reserved.