<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kento1109</author_name>
  <author_url>https://blog.hatena.ne.jp/kento1109/</author_url>
  <blog_title>機械学習・自然言語処理の勉強メモ</blog_title>
  <blog_url>https://kento1109.hatenablog.com/</blog_url>
  <categories>
    <anon>PyTorch</anon>
    <anon>torchtext</anon>
    <anon>メモ</anon>
  </categories>
  <description>はじめに torchtextの使い方メモ第三弾。前回の内容は下記参照 kento1109.hatenablog.com今回の内容は１つだけ。 POSやNERなどのTaggingを考える場合、どのようにtorchtextで読み込めばよいか。前回まではtorchtextでデータをファイルから読む際、想定されているのは（感情分析等の場合）以下のような形式だった。 I love this moive,1 ただし、学習の目的がTaggingの場合、入力データのフォーマットがそもそも異なる。 NERの場合、だいたいこんな感じだ。 Tom B-PER is O my O friend O New B-LOC…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkento1109.hatenablog.com%2Fentry%2F2018%2F10%2F03%2F173435&quot; title=&quot;Pytorch：テキストの前処理（torchtext）③ - 機械学習・自然言語処理の勉強メモ&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>2018-10-03 17:34:35</published>
  <title>Pytorch：テキストの前処理（torchtext）③</title>
  <type>rich</type>
  <url>https://kento1109.hatenablog.com/entry/2018/10/03/173435</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
