mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-24 12:41:02 +02:00
17 lines
No EOL
582 B
Python
17 lines
No EOL
582 B
Python
from pulsar.schema import Record, String, Map, Double
|
|
|
|
from ..core.metadata import Metadata
|
|
from ..core.topic import topic
|
|
|
|
############################################################################
|
|
|
|
# Extracted object from text processing
|
|
|
|
class ExtractedObject(Record):
|
|
metadata = Metadata()
|
|
schema_name = String() # Which schema this object belongs to
|
|
values = Map(String()) # Field name -> value
|
|
confidence = Double()
|
|
source_span = String() # Text span where object was found
|
|
|
|
############################################################################ |