victormiller commited on
Commit
d82cc95
1 Parent(s): e047b3e

Update curated.py

Browse files
Files changed (1) hide show
  1. curated.py +18 -17
curated.py CHANGED
@@ -438,6 +438,22 @@ phil_filter = pd.DataFrame(
438
  table_html_phil = phil_filter.to_html(index=False, border=0)
439
  table_div_phil = Div(NotStr(table_html_phil), style="margin: 40px;")
440
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
441
 
442
  def get_freelaw_data(data_source: str = "Freelaw", doc_id: int = 3, target: str = "foo"):
443
  doc_id = max(0, min(int(doc_id), 9))
@@ -457,7 +473,7 @@ def get_freelaw_data(data_source: str = "Freelaw", doc_id: int = 3, target: str
457
  extracted_json,
458
  doc_id=doc_id,
459
  data_source="Freelaw",
460
- data_sources=data_sources,
461
  target=target,
462
  )
463
 
@@ -869,22 +885,7 @@ table_html_data_pipe = data_pipeline_table.to_html(index=False, border=0)
869
  table_div_data_pipe = Div(NotStr(table_html_data_pipe), style="margin: 40px;")
870
 
871
 
872
- data_sources = [
873
- "Freelaw",
874
- "Wikipedia",
875
- "PhilPapers",
876
- "Arxiv",
877
- "S2ORC",
878
- "S2ORC Abstract",
879
- "Pubmed",
880
- "USPTO",
881
- "Hackernews",
882
- "Ubuntu IRC",
883
- "StackExchange",
884
- "DM Maths",
885
- "PG19",
886
- "Europarl",
887
- ]
888
 
889
 
890
  def get_data(data_source: str = "Freelaw", doc_id: int = 3, target: str = "foo"):
 
438
  table_html_phil = phil_filter.to_html(index=False, border=0)
439
  table_div_phil = Div(NotStr(table_html_phil), style="margin: 40px;")
440
 
441
+ data_sources = [
442
+ "Freelaw",
443
+ "Wikipedia",
444
+ "PhilPapers",
445
+ "Arxiv",
446
+ "S2ORC",
447
+ "S2ORC Abstract",
448
+ "Pubmed",
449
+ "USPTO",
450
+ "Hackernews",
451
+ "Ubuntu IRC",
452
+ "StackExchange",
453
+ "DM Maths",
454
+ "PG19",
455
+ "Europarl",
456
+ ]
457
 
458
  def get_freelaw_data(data_source: str = "Freelaw", doc_id: int = 3, target: str = "foo"):
459
  doc_id = max(0, min(int(doc_id), 9))
 
473
  extracted_json,
474
  doc_id=doc_id,
475
  data_source="Freelaw",
476
+ data_sources="Freelaw",
477
  target=target,
478
  )
479
 
 
885
  table_div_data_pipe = Div(NotStr(table_html_data_pipe), style="margin: 40px;")
886
 
887
 
888
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
889
 
890
 
891
  def get_data(data_source: str = "Freelaw", doc_id: int = 3, target: str = "foo"):