Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/Turing-Project/WriteGPT
/ demo.py
File
demo.py
LanguageNetwork/GPT2/scripts/demo.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
sys
2
import
os
3
import
argparse
4
import
json
Callers
nothing calls this directly
Calls
9
sample
Function · 0.90
coarse_formatter
Function · 0.90
immediate_print
Function · 0.90
FullTokenizer
Class · 0.70
convert_to_unicode
Function · 0.70
extract_generated_target
Function · 0.70
from_json_file
Method · 0.45
tokenize
Method · 0.45
convert_tokens_to_ids
Method · 0.45
Tested by
no test coverage detected