Oliviayc commited on
Commit
17374a5
·
1 Parent(s): 30f1709

change the naming method of HTML file.

Browse files
scattertext CHANGED
@@ -1 +1 @@
1
- Subproject commit 1cf9f5bc5c5ece983b8356ee82bf88a8a1bb693e
 
1
+ Subproject commit 04b8152279ac6563c37fa522df72e909ff8148cc
scattertext_visualization.html → scattertext_032-211-407-789-770_036-842-302-145-799.html RENAMED
File without changes
scattertext_WOS:000685648800006_WOS:000448455800001.html ADDED
The diff for this file is too large to render. See raw diff
 
test_function.py CHANGED
@@ -42,11 +42,11 @@ def customized_file(file_path: str,column_category: str, column_text: str, subca
42
  minimum_term_frequency = 0,
43
  metadata = df_filtered[column_category])
44
 
45
- html_file_path = "scattertext_visualization.html"
46
  with open(html_file_path, "w", encoding='utf-8') as f:
47
  f.write(html)
48
 
49
  return html_file_path
50
 
51
- path = customized_file('./sample_data/lens.csv', 'Lens ID','Abstract', '032-211-407-789-770', '036-842-302-145-799' )
52
-
 
42
  minimum_term_frequency = 0,
43
  metadata = df_filtered[column_category])
44
 
45
+ html_file_path = f"scattertext_{subcategory1}_{subcategory2}.html"
46
  with open(html_file_path, "w", encoding='utf-8') as f:
47
  f.write(html)
48
 
49
  return html_file_path
50
 
51
+ test1 = customized_file('./sample_data/lens.csv', 'Lens ID','Abstract', '032-211-407-789-770', '036-842-302-145-799' )
52
+ test2 = customized_file('./sample_data/wos.txt', 'UT', 'AB','WOS:000685648800006','WOS:000448455800001')