PastaAddict commited on
Commit
979db2f
·
1 Parent(s): fcac732

Added .gitignore

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. prepare.ipynb +94 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ /home/kristi/Desktop/action_verbs/Action-Verbs/prepare.ipynb
prepare.ipynb CHANGED
@@ -66,6 +66,100 @@
66
  " gitkeep_path = os.path.join(root, \".gitkeep\")\n",
67
  " open(gitkeep_path, \"w\").close()"
68
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  }
70
  ],
71
  "metadata": {
 
66
  " gitkeep_path = os.path.join(root, \".gitkeep\")\n",
67
  " open(gitkeep_path, \"w\").close()"
68
  ]
69
+ },
70
+ {
71
+ "cell_type": "code",
72
+ "execution_count": 9,
73
+ "metadata": {},
74
+ "outputs": [],
75
+ "source": [
76
+ "import random\n",
77
+ "from collections import defaultdict\n",
78
+ "\n",
79
+ "# Load verbs from file\n",
80
+ "with open(verbs_file, \"r\") as f:\n",
81
+ " verbs = [line.strip() for line in f if line.strip()]\n",
82
+ "\n",
83
+ "# Define student names or usernames\n",
84
+ "students = [\"Jeannie\", \"Xingzhi\", \"Dominic\", \"James\"]\n",
85
+ "\n",
86
+ "# Shuffle and split verbs\n",
87
+ "random.shuffle(verbs)\n",
88
+ "chunks = defaultdict(list)\n",
89
+ "for i, verb in enumerate(verbs):\n",
90
+ " student = students[i % len(students)]\n",
91
+ " chunks[student].append(verb)\n",
92
+ "\n",
93
+ "# Generate markdown\n",
94
+ "md_lines = [\"# 📝 Action Verb Dataset To-Do List\\n\"]\n",
95
+ "\n",
96
+ "for student in students:\n",
97
+ " md_lines.append(f\"## 👤 {student}\")\n",
98
+ " for verb in sorted(chunks[student]):\n",
99
+ " md_lines.append(f\"- [ ] Populate `images/{verb}` and `videos/{verb}` \")\n",
100
+ " md_lines.append(\"\") # Add spacing\n",
101
+ "\n",
102
+ "# Save to markdown file or print\n",
103
+ "markdown_output = \"\\n\".join(md_lines)\n",
104
+ "#with open(\"verb_todo_issue.md\", \"w\") as f:\n",
105
+ "# f.write(markdown_output)\n",
106
+ "\n",
107
+ "#print(\"✅ To-do list saved to `verb_todo_issue.md`\")\n"
108
+ ]
109
+ },
110
+ {
111
+ "cell_type": "code",
112
+ "execution_count": 10,
113
+ "metadata": {},
114
+ "outputs": [
115
+ {
116
+ "name": "stdout",
117
+ "output_type": "stream",
118
+ "text": [
119
+ "# 📝 Action Verb Dataset To-Do List\n",
120
+ "\n",
121
+ "## 👤 Jeannie\n",
122
+ "- [ ] Populate `images/bending over` and `videos/bending over` \n",
123
+ "- [ ] Populate `images/calling` and `videos/calling` \n",
124
+ "- [ ] Populate `images/crawling` and `videos/crawling` \n",
125
+ "- [ ] Populate `images/dancing` and `videos/dancing` \n",
126
+ "- [ ] Populate `images/singing` and `videos/singing` \n",
127
+ "- [ ] Populate `images/sliding` and `videos/sliding` \n",
128
+ "- [ ] Populate `images/talking` and `videos/talking` \n",
129
+ "\n",
130
+ "## 👤 Xingzhi\n",
131
+ "- [ ] Populate `images/flying` and `videos/flying` \n",
132
+ "- [ ] Populate `images/pointing` and `videos/pointing` \n",
133
+ "- [ ] Populate `images/reading` and `videos/reading` \n",
134
+ "- [ ] Populate `images/scratching` and `videos/scratching` \n",
135
+ "- [ ] Populate `images/skipping` and `videos/skipping` \n",
136
+ "- [ ] Populate `images/sleeping` and `videos/sleeping` \n",
137
+ "- [ ] Populate `images/waving` and `videos/waving` \n",
138
+ "\n",
139
+ "## 👤 Dominic\n",
140
+ "- [ ] Populate `images/digging` and `videos/digging` \n",
141
+ "- [ ] Populate `images/knocking` and `videos/knocking` \n",
142
+ "- [ ] Populate `images/melting` and `videos/melting` \n",
143
+ "- [ ] Populate `images/painting` and `videos/painting` \n",
144
+ "- [ ] Populate `images/running` and `videos/running` \n",
145
+ "- [ ] Populate `images/skiing` and `videos/skiing` \n",
146
+ "- [ ] Populate `images/smelling` and `videos/smelling` \n",
147
+ "\n",
148
+ "## 👤 James\n",
149
+ "- [ ] Populate `images/combing` and `videos/combing` \n",
150
+ "- [ ] Populate `images/jumping` and `videos/jumping` \n",
151
+ "- [ ] Populate `images/sitting` and `videos/sitting` \n",
152
+ "- [ ] Populate `images/skating` and `videos/skating` \n",
153
+ "- [ ] Populate `images/standing up` and `videos/standing up` \n",
154
+ "- [ ] Populate `images/swimming` and `videos/swimming` \n",
155
+ "- [ ] Populate `images/swingling` and `videos/swingling` \n",
156
+ "\n"
157
+ ]
158
+ }
159
+ ],
160
+ "source": [
161
+ "print(markdown_output)"
162
+ ]
163
  }
164
  ],
165
  "metadata": {