pip install torch==1.12.0
pip install folium==0.2.1
pip install torchdata==0.4.0
pip install torchtext==0.13.0
pip install 'portalocker>=2.0.0'
pip show torch
pip show torchdata
pip show torchtext
from torchtext.datasets import WikiText2
train = WikiText2(split='train')
for i, text in enumerate(train):
if i == 5: break
print(text)
실행결과
= Valkyria Chronicles III =
Senjō no Valkyria 3 : <unk> Chronicles ( Japanese : 戦場のヴァルキュリア3 , lit . Valkyria of the Battlefield 3 ) , commonly referred to as Valkyria Chronicles III outside Japan , is a tactical role @-@ playing video game developed by Sega and Media.Vision for the PlayStation Portable . Released in January 2011 in Japan , it is the third game in the Valkyria series . <unk> the same fusion of tactical and real @-@ time gameplay as its predecessors , the story runs parallel to the first game and follows the " Nameless " , a penal military unit serving the nation of Gallia during the Second Europan War who perform secret black operations and are pitted against the Imperial unit " <unk> Raven " .
The game began development in 2010 , carrying over a large portion of the work done on Valkyria Chronicles II . While it retained the standard features of the series , it also underwent multiple adjustments , such as making the game more <unk> for series newcomers . Character designer <unk> Honjou and composer Hitoshi Sakimoto both returned from previous entries , along with Valkyria Chronicles II director Takeshi Ozawa . A large team of writers handled the script . The game 's opening theme was sung by May 'n .
다음과 같이 train 데이터셋의 일부가 출력되는 것을 확인할 수 있었으며, unk
토큰은 unknown token을 의미함