<?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>
  </categories>
  <description>はじめに torchtextの使い方に関するメモ。入力の素性をカスタマイズしたい場合について例えば、各系列に付与したカラムを入力に含めたい場合 （0,1は系列の何らかの情報） a 1 b 0 c 1 d 0 e 1 f 0これをどうハンドリングするかについて少し考えた。 簡単な方法 多分、一番簡単な方法は以下のように系列カラムと同じように処理するだけ。 TEXT = data.Field() LABEL = data.Field() train = datasets.SequenceTaggingDataset( path=data_dir, fields=[('text', TEXT), (…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkento1109.hatenablog.com%2Fentry%2F2019%2F02%2F24%2F175051&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>2019-02-24 17:50:51</published>
  <title>Pytorch：テキストの前処理（torchtext）④</title>
  <type>rich</type>
  <url>https://kento1109.hatenablog.com/entry/2019/02/24/175051</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
