Skip to content

Simplify DistantSupervision main method #10

Description

@jgilme1

Here's the kind of thing I'd like to be able to do for DistantSupervision instead of using the current main method. Something similar for FeatureGeneration would be good as well.

KnowledgeBase kb = new KnowledgeBase("knowledge-bases/kb-facts-train.tsv.gz", "knowledge-bases/entity-names-train.tsv.gz", "knowledge-bases/target-relations.tsv");

Corpus c = new Corpus("doc-entity-split/training-corpus.derby/");

DistantSupervision ds = new DistantSupervision(NERArgumentIdentification.getInstance(), NERSententialInstanceGeneration.getInstance(), NERRelationMatching(), negExFlag);

writeToFile("ner-train/training-instances.tsv.gz", ds.produceTrainingInstances(kb, c));

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions