Skip to content

Commit

Permalink
Added a personal filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruofeidu committed May 4, 2024
1 parent 3a6e2bd commit f0219c2
Show file tree
Hide file tree
Showing 5 changed files with 5,952 additions and 2,768 deletions.
15 changes: 12 additions & 3 deletions DuSigchiParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,22 @@ def convert_markdown_to_html(file_path):

def parse(filename_raw, data, indent=0, program='chi', year='2024'):
filename = 'sigchi/' + filename_raw[:-4] + 'md'

# with open(filename + 'session.md', 'w', encoding='utf-8') as ff:
with open(filename, 'w', encoding='utf-8') as f:
# Iterate over sessions and extract paper titles, session names, and author names
for session in data['sessions']:
session_name = session['name']
if not (session['typeId'] == 13269):
continue # Checks if it's a paper session.
f.write(f"\n## {session_name}\n")
# ff.write(f"\n## {session_name}\n")
for content_id in session['contentIds']:
content = next((c for c in data['contents'] if c['id'] == content_id),
None)
if content and content[
'typeId'] == 13269: # Check if the content is a paper
if content and content['typeId'] in [
13269, 13341
]: # Check if the content is a paper or journal
paper_title = content['title']
authors = [
f"{person['firstName']} {person['lastName']}"
Expand All @@ -49,7 +53,12 @@ def parse(filename_raw, data, indent=0, program='chi', year='2024'):
f.write(content['award'] + "\n\n")
f.write(f"Authors: {', '.join(authors)}\n\n")
f.write(f"[Link]({link})\n\n")
f.write(f"Abstract: {abstract}\n\n")
KEYWORDS = [
'Reality', 'XR', 'Virtual', 'LLM', 'AI', 'Large', 'Immersive',
'Communication', 'Gaze'
]
if any(keyword in session_name for keyword in KEYWORDS):
f.write(f"Abstract: {abstract}\n\n")
f.write('\n\n')

convert_markdown_to_html(filename)
Expand Down
Loading

0 comments on commit f0219c2

Please sign in to comment.