You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
frompyrdf2vec.graphsimportKGkg=KG(location="https://dbpedia.org/sparql", is_remote=True)
frompyrdf2vec.samplersimportUniformSamplerfrompyrdf2vec.walkersimportRandomWalkerwalkers= [RandomWalker(4, 5, UniformSampler())]
frompyrdf2vecimportRDF2VecTransformertransformer=RDF2VecTransformer(walkers=[walkers], sg=1)
# Entities should be a list of URIs that can be found in the Knowledge Graphembeddings=transformer.fit_transform(kg, entities)
The text was updated successfully, but these errors were encountered:
See the pyRDF2Vec documentation:
https://pyrdf2vec.readthedocs.io/en/latest/readme.html#create-a-knowledge-graph-object
To create embeddings:
The text was updated successfully, but these errors were encountered: