Last updated: Sep 17, 2026最後更新:2026年9月17日
Assignments作業 · CHI 3242 syllabusCHI 3242 課程大綱
Assignment 0 (not graded)作業0(不計分)
Due: 23 Sep, 9:00 am
For this assignment, please complete the following steps:
- Create a new GitHub repository and open it in Codespaces.
- Using the method taught in class, call the GLM-5.3-Flash model through OpenCode (with your own API key).
- Choose a literary text you like and ask the model to suggest several ways of analyzing it, for example:
- the most frequent words
- words that characterize each figure in the text
- dictionary-based emotion analysis: the distribution of positive and negative sentiment across the text
The method can be very simple or somewhat more complex — that is up to you.
- Once the analysis is finished, you will have a
.pyscript, a.txtfile, and an.htmlfile presenting the final results. - Commit and push all the files to your GitHub repository to save your work.
Publishing to GitHub Pages (three simple steps)
So that your .html results can be viewed directly on the web, publish them as a GitHub Pages site:
- Make sure your final
.htmlfile is in the root of the repository and namedindex.html. (If it has a different name, remember to specify the correct file in the following steps.) - On your repository page, go to Settings → Pages.
- Under Build and deployment → Source, choose:
- Branch:
main - Folder:
/ (root)
Then click Save. Wait 1–2 minutes and the site will be generated automatically.
- Branch:
Once it is published, a URL will appear on the same page, in this format:
https://your-account.github.io/your-repo-name/
Submission
Please submit the following two links:
- the URL of your GitHub repository
- the URL of your GitHub Pages site (where your analysis can be viewed directly)
If you have any questions, please feel free to ask!
截止:9月23日 上午9:00
在這次作業中,請完成以下步驟:
- 建立新的 GitHub Repository,並在 Codespaces 中開啟。
- 依照課堂上教的方法,透過 OpenCode 呼叫 GLM-5.3-Flash 模型(使用你自己的專屬 API key)。
- 選擇一篇你喜歡的文學文本,請模型提出幾種分析方式的建議,例如:
- 最高頻詞彙
- 能代表每個人物特徵的詞語
- 基於詞典的情感分析(dictionary-based emotion analysis),分析文本中情感分佈(積極/消極)
分析方法可以很簡單,也可以複雜一點,由你自己決定。
- 完成分析後,會產生
.py腳本、.txt檔案,以及最終呈現結果的.html檔案。 - 將所有檔案 commit 並 push 到你的 GitHub repo,保存這次的作業成果。
發布成 GitHub Pages 網頁(簡單三步)
為了讓你的 .html 分析結果可以直接在網路上瀏覽,請照以下步驟把它發布成 GitHub Pages:
- 確認你的最終
.html檔案放在 repo 的根目錄下,並命名為index.html(如果檔名不同,記得之後步驟要指定正確的檔案)。 - 到你的 repo 頁面,點選 Settings → Pages。
- 在 Build and deployment 底下的 Source,選擇:
- Branch:
main - Folder:
/ (root)
然後按 Save。等待 1–2 分鐘,網頁就會自動生成。
- Branch:
發布成功後,你會在同一頁面上看到一個網址,格式如下:
https://你的帳號.github.io/你的repo名稱/
提交方式
提交作業時,請提供以下兩個連結:
- GitHub Repository 的網址
- GitHub Pages 的網址(可以直接瀏覽你的分析結果的網頁)
如有任何問題,歡迎隨時提問!