-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Make file with anonymised submissions to share with sister conferences | ||
# (for dual-submission detection) | ||
# Ulle Endriss, 14 April 2024 | ||
import os | ||
|
||
from easychair_extra.read import read_submission | ||
|
||
|
||
def main(): | ||
current_dir = os.path.dirname(os.path.abspath(__file__)) | ||
root_dir = os.path.join(current_dir, "..", "easychair_sample_files") | ||
|
||
# read submission and author files | ||
submissions = read_submission( | ||
os.path.join(root_dir, "submission.csv"), | ||
remove_deleted=True | ||
) | ||
|
||
submissions["id"] = submissions["#"] | ||
submissions.to_csv("anonymised_submissions.csv", sep=",", encoding="utf-8", columns=["id", "title", "abstract"], index=False) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Help finding placeholder abstracts | ||
# Ulle Endriss, 14 April 2024 | ||
import os | ||
|
||
from easychair_extra.read import read_submission | ||
|
||
|
||
def main(): | ||
current_dir = os.path.dirname(os.path.abspath(__file__)) | ||
root_dir = os.path.join(current_dir, "..", "easychair_sample_files") | ||
|
||
# read submission and author files | ||
submissions = read_submission( | ||
os.path.join(root_dir, "submission.csv"), | ||
remove_deleted=True | ||
) | ||
submissions["abstract_len"] = submissions.apply(lambda df_row: len(df_row["abstract"]), axis=1) | ||
|
||
submissions.to_csv("abstract.csv", sep=",", encoding="utf-8", columns=["#", "abstract_len", "abstract"], index=False) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import pathlib | ||
from collections import Counter, defaultdict | ||
|
||
import csv | ||
import os.path | ||
|
||
import pandas as pd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters