Giter Club home page Giter Club logo

Comments (4)

MikeDoes avatar MikeDoes commented on May 22, 2024

Oh I found it here. Turns out the choices are:

'bert-large-uncased', 'bert-large-cased', 'bert-base-uncased', 'bert-base-cased', 'gpt2', 'gpt2-medium', 'gpt2-large', 'gpt2-xl'

from language-models-are-knowledge-graphs-pytorch.

MikeDoes avatar MikeDoes commented on May 22, 2024

I attempted to run it with the gpt2-xl parameters, however I got the following error:
Traceback (most recent call last):
File "/usr/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/content/language-models-are-knowledge-graphs-pytorch/process.py", line 29, in bfs
return BFS(s, end, graph, max_size, black_list_relation)
File "/content/language-models-are-knowledge-graphs-pytorch/utils.py", line 19, in BFS
visited = [False] * (max(graph.keys())+100)
ValueError: max() arg is an empty sequence
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "extract.py", line 74, in
for triplets in parse_sentence(sent.text, tokenizer, encoder, nlp, use_cuda=use_cuda):
File "/content/language-models-are-knowledge-graphs-pytorch/process.py", line 94, in parse_sentence
for output in pool.imap_unordered(bfs, params):
File "/usr/lib/python3.7/multiprocessing/pool.py", line 748, in next
raise value
File "/usr/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/content/language-models-are-knowledge-graphs-pytorch/process.py", line 29, in bfs
return BFS(s, end, graph, max_size, black_list_relation)
File "/content/language-models-are-knowledge-graphs-pytorch/utils.py", line 19, in BFS
visited = [False] * (max(graph.keys())+100)
ValueError: max() arg is an empty sequence

from language-models-are-knowledge-graphs-pytorch.

MikeDoes avatar MikeDoes commented on May 22, 2024

Also tried running it with just gpt2-large, same error and empty output file

from language-models-are-knowledge-graphs-pytorch.

lingyu123-su avatar lingyu123-su commented on May 22, 2024

got this error too

from language-models-are-knowledge-graphs-pytorch.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.