pepper.brain.utils.response module¶
-
class
pepper.brain.utils.response.
CardinalityConflict
(provenance, entity)[source]¶ Bases:
object
-
casefold
(format='triple')[source]¶ Format the labels to match triples or natural language :param format:
-
date
¶
-
object
¶
-
object_name
¶
-
provenance
¶
-
-
class
pepper.brain.utils.response.
Entity
(id, label, types, offset=None, confidence=0.0)[source]¶ Bases:
pepper.brain.utils.response.RDFBase
-
casefold
(format='triple')[source]¶ Format the labels to match triples or natural language :param format:
-
types
¶
-
types_names
¶
-
-
class
pepper.brain.utils.response.
EntityNovelty
(existence_subject, existence_object)[source]¶ Bases:
object
-
object
¶
-
subject
¶
-
-
class
pepper.brain.utils.response.
Gap
(predicate, entity)[source]¶ Bases:
object
-
casefold
(format='triple')[source]¶ Format the labels to match triples or natural language :param format:
-
entity
¶
-
entity_range
¶
-
entity_range_name
¶
-
predicate
¶
-
predicate_name
¶
-
-
class
pepper.brain.utils.response.
Gaps
(subject_gaps, object_gaps)[source]¶ Bases:
object
-
casefold
(format='triple')[source]¶ Format the labels to match triples or natural language :param format:
-
object
¶
-
subject
¶
-
-
class
pepper.brain.utils.response.
NegationConflict
(provenance, predicate)[source]¶ Bases:
object
-
casefold
(format='triple')[source]¶ Format the labels to match triples or natural language :param format:
-
date
¶
-
predicate
¶
-
predicate_name
¶
-
provenance
¶
-
-
class
pepper.brain.utils.response.
Overlap
(provenance, entity)[source]¶ Bases:
object
-
casefold
(format='triple')[source]¶ Format the labels to match triples or natural language :param format:
-
date
¶
-
entity
¶
-
entity_name
¶
-
entity_types
¶
-
provenance
¶
-
-
class
pepper.brain.utils.response.
Overlaps
(subject_overlaps, object_overlaps)[source]¶ Bases:
object
-
casefold
(format='triple')[source]¶ Format the labels to match triples or natural language :param format:
-
object
¶
-
subject
¶
-
-
class
pepper.brain.utils.response.
Perspective
(certainty, polarity, sentiment, time=None, emotion=None)[source]¶ Bases:
object
-
certainty
¶
-
emotion
¶
-
polarity
¶
-
sentiment
¶
-
time
¶
-
-
class
pepper.brain.utils.response.
Predicate
(id, label, offset=None, confidence=0.0, cardinality=1)[source]¶ Bases:
pepper.brain.utils.response.RDFBase
-
cardinality
¶
-
-
class
pepper.brain.utils.response.
Provenance
(author, date)[source]¶ Bases:
object
-
casefold
(format='triple')[source]¶ Format the labels to match triples or natural language :param format:
-
date
¶
-
-
class
pepper.brain.utils.response.
RDFBase
(id, label, offset=None, confidence=0.0)[source]¶ Bases:
object
-
casefold
(format='triple')[source]¶ Format the labels to match triples or natural language :param format:
-
confidence
¶
-
id
¶
-
label
¶
-
offset
¶
-
-
class
pepper.brain.utils.response.
StatementNovelty
(provenance)[source]¶ Bases:
object
-
casefold
(format='triple')[source]¶ Format the labels to match triples or natural language :param format:
-
date
¶
-
provenance
¶
-
-
class
pepper.brain.utils.response.
Thoughts
(statement_novelty, entity_novelty, negation_conflicts, object_conflict, subject_gaps, object_gaps, overlaps, trust)[source]¶ Bases:
object