Comments (4)
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.
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.
Also tried running it with just gpt2-large, same error and empty output file
from language-models-are-knowledge-graphs-pytorch.
got this error too
from language-models-are-knowledge-graphs-pytorch.
Related Issues (12)
- Issues with installation and running extract HOT 9
- Issue with using REL
- using GPT3.5/4
- sqlite3.OperationalError: unable to open database file HOT 1
- function of black list relations (and issue with lemmatisation)
- Consider adding a license?
- The issuues about BFS
- extract.py not running even with all requirements installed HOT 4
- What are the parameters of the python line HOT 1
- Requirements Missing REL HOT 1
- Hello, I am a beginner in Python HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from language-models-are-knowledge-graphs-pytorch.