<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>upura</author_name>
  <author_url>https://blog.hatena.ne.jp/upura/</author_url>
  <blog_title>u++の備忘録</blog_title>
  <blog_url>https://upura.hatenablog.com/</blog_url>
  <categories>
    <anon>自然言語処理</anon>
    <anon>python</anon>
  </categories>
  <description>問題文 nlp100.github.io 問題の概要 「20. JSONデータの読み込み」で取り出したイギリスに関する文章を扱います。 記事中でカテゴリ名を宣言している行は「Category:」を含みます。文章を「split()」を用いて改行で分割し、「filter」を用いて「Category:」を含む行のみを取り出します。 import pandas as pd df = pd.read_json('ch03/jawiki-country.json.gz', lines=True) uk_text = df.query('title==&quot;イギリス&quot;')['text'].values[0] u…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fupura.hatenablog.com%2Fentry%2F2020%2F04%2F14%2F232520&quot; title=&quot;言語処理100本ノック 2020「21. カテゴリ名を含む行を抽出」 - u++の備忘録&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-14 23:25:20</published>
  <title>言語処理100本ノック 2020「21. カテゴリ名を含む行を抽出」</title>
  <type>rich</type>
  <url>https://upura.hatenablog.com/entry/2020/04/14/232520</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
