Skip to content

How to trace source sentence with multiple keys? #47

@senwu

Description

@senwu

I want to trace the source sentence for my extraction based on multiple keys, and I write something like:

@source
sentences(
@key
doc_id text,
@key
section_id text,
ref_doc_id text,
@key
sent_id int,
@searchable
words text[],
lemmas text[],
poses text[],
ners text[],
dep_paths text[],
dep_parents int[]).

@Extraction
gene_mentions(
id bigint,
@references(relation="sentences", column="doc_id", alias="sent_gene")
doc_id text,
@references(relation="sentences", column="section_id", alias="sent_gene")
section_id text,
@references(relation="sentences", column="sent_id", alias="sent_gene")
sent_id int,
wordidxs int[],
@key
mention_id text,
supertype text,
subtype text,
@searchable
entity text,
@searchable
words text[],
@navigable
is_correct boolean).

But it doesn't work, am I missing something? How can I use multiple keys to find the source sentence?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions