Skip to content

Getting started #5

@axelbender

Description

@axelbender

Hello Yue Liu,

I'm interested trying out your model for a problem I'm trying to solve, where I require a natural language database to be linked to a semantic layer using RDF Triples. So far I've done the following:

  1. Downloaded pretrain Embedding vector (Word2Vec model):
    https://wikipedia2vec.github.io/wikipedia2vec/pretrained/
  2. Prepare input data (train/test) in the following format:
  1. Run s2s_preprocess.py to generate pkl file for training.
  2. Prepare support model
  • Train Knowledge graph Embedding (TransE model)
  • Build cpp/python libraries (run make.sh)
  • Run dbpedia_train_transe.py
  1. Ran s2s_validate_graph_embredding.py to get *_graph.pkl
  2. Run s2s_train_graph or s2s_end2end.py

The last step I'm having troubles when running s2s_train_graph.py
(line 70: feed_dict["decoder_target"] = np.array(y, dtype=np.int32) where the variable y has been appended with string arrays (fx. ['keikavus', 'was', 'born', 'in', '1021', 1, 0]).

Any idea/suggestion where I might have gone wrong.

Best Regards,
Axel Bender.

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