@@ -8,7 +8,6 @@ class Document:
8
8
id : int
9
9
name : str
10
10
etl_output_url : str
11
- full_text_url : str
12
11
13
12
# Auto review changes must reproduce all model sections that were present in the
14
13
# original result file. This may not be possible from the predictions alone--if a
@@ -26,14 +25,12 @@ def from_v1_dict(result: object) -> "Document":
26
25
document_results = get (result , dict , "results" , "document" , "results" )
27
26
model_names = frozenset (document_results .keys ())
28
27
etl_output_url = get (result , str , "etl_output" )
29
- full_text_url = etl_output_url .replace ("etl_output.json" , "full_text.txt" )
30
28
31
29
return Document (
32
30
# v1 result files don't include document IDs or filenames.
33
31
id = None , # type: ignore[arg-type]
34
32
name = None , # type: ignore[arg-type]
35
33
etl_output_url = etl_output_url ,
36
- full_text_url = full_text_url ,
37
34
_model_sections = model_names ,
38
35
)
39
36
@@ -45,12 +42,10 @@ def from_v3_dict(document: object) -> "Document":
45
42
model_results = get (document , dict , "model_results" , "ORIGINAL" )
46
43
model_ids = frozenset (model_results .keys ())
47
44
etl_output_url = get (document , str , "etl_output" )
48
- full_text_url = etl_output_url .replace ("etl_output.json" , "full_text.txt" )
49
45
50
46
return Document (
51
47
id = get (document , int , "submissionfile_id" ),
52
48
name = get (document , str , "input_filename" ),
53
49
etl_output_url = etl_output_url ,
54
- full_text_url = full_text_url ,
55
50
_model_sections = model_ids ,
56
51
)
0 commit comments