Inside Kotogumo

kishimin
November 29, 2026
0

Inside Kotogumo

kishimin

November 29, 2026

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

19 slides
  1. 09 / 19 カラーマップ カラーマップは Cool を採用 “colormap : string

    or matplotlib colormap, default=”viridis”” WordCloud公式ドキュメント 櫻坂46「Cool」公式MV WordCloud公式ドキュメント:https://amueller.github.io/word_cloud/generated/wordcloud.WordCloud.html Matplotlib:カラーマップ:https://matplotlib.org/stable/users/explain/colors/colormaps.html
  2. 11 / 19 メンバー名を保護する仕組み objects_response = requests.get(url=f"{EXAMPLE_COLLECTOR_URL}/objects") object_names = []

    for objects in objects_response.json().values(): for object in objects: object_name = object["name"] object_names.append(object_name) analysis_text = ""
  3. 12 / 19 メンバー名を保護する仕組み protected_names = [] for protected_name in

    object_names: if not protected_name: continue protected_names.extend(re.findall(re.escape(pr otected_name), analysis_text)) analysis_text = analysis_text.replace(protected_name, "")
  4. 15 / 19 名前が2回繰り返し表示された 保護した名前がリスト内で連続していた “collocations : bool, default=True Whether

    to include collocations (bigrams) of two words. Ignored if using generate_from_frequencies.” WordCloud公式ドキュメント:https://amueller.github.io/word_cloud/generated/wordcloud.WordCloud.html