├── README.md ├── model.py ├── options.py ├── sample_data ├── sample_ref.txt ├── sample_test.txt ├── sample_train.tsv └── sample_valid.tsv ├── train.py └── translate.py /README.md: -------------------------------------------------------------------------------- 1 | # Effective Approaches to Attention-based Neural Machine Translation 2 | An Implementation of the Encoder-Decoder model with global attention mechanism ([Luong et al., 2015](https://arxiv.org/pdf/1508.04025.pdf)). This stacked multiple layers of an RNN with a Long Short-Term Memory (LSTM) are used for both the encoder and the decoder. Also, the global attention mechanism and input feeding approach are employed. In the training step, you can use schedule sampling ([Bengio et al., 2015](https://arxiv.org/pdf/1506.03099.pdf)) to bridge the gap between training and inference for sequence prediction tasks. 3 | 4 | ## Usages 5 | ### Training 6 | The `--train` and `--valid` options receive the path to a data file for training and validation, respectively. The data file must be tab-separated values (TSV) format. If you need to use GPU, please set the `--gpu` option. `--tf-ratio` option means a ratio of the supervised signal in the decoding step. 7 | 8 | ```sh 9 | python train.py \ 10 | --gpu \ 11 | --train ./sample_data/sample_train.tsv \ 12 | --valid ./sample_data/sample_valid.tsv \ 13 | --tf-ratio 0.5 \ 14 | --savedir ./checkpoints 15 | ``` 16 | 17 | ### Translation 18 | The `--model` option receives the path to a model file generated by `train.py`. A text file that you want to translate is given to `--input`. If you need to use GPU, please set the `--gpu` option. 19 | 20 | ```sh 21 | python translate.py \ 22 | --gpu \ 23 | --model ./checkpoints/checkpoint_best.pt \ 24 | --input ./sample_data/sample_test.txt 25 | ``` 26 | 27 | ## References 28 | - [Minh-Thang Luong, Hieu Pham, and Christopher D Manning. Effective approaches to attention based neural machine translation. In EMNLP 2015, 1412–1421.](https://arxiv.org/pdf/1508.04025.pdf) 29 | - [Bengio, S.; Vinyals, O.; Jaitly, N.; and Shazeer, N. Scheduled sampling for sequence prediction with recurrent neural networks. In NIPS 2015, 1171–1179.](https://arxiv.org/pdf/1506.03099.pdf) 30 | -------------------------------------------------------------------------------- /model.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | import random 4 | 5 | import torch 6 | import torch.nn as nn 7 | import torch.nn.functional as F 8 | 9 | 10 | class EncRNN(nn.Module): 11 | def __init__(self, vsz, embed_dim, hidden_dim, n_layers, use_birnn, dout): 12 | super(EncRNN, self).__init__() 13 | self.embed = nn.Embedding(vsz, embed_dim) 14 | self.rnn = nn.LSTM(embed_dim, hidden_dim, n_layers, 15 | bidirectional=use_birnn) 16 | self.dropout = nn.Dropout(dout) 17 | 18 | def forward(self, inputs): 19 | embs = self.dropout(self.embed(inputs)) 20 | enc_outs, hidden = self.rnn(embs) 21 | return self.dropout(enc_outs), hidden 22 | 23 | 24 | class Attention(nn.Module): 25 | def __init__(self, hidden_dim, method): 26 | super(Attention, self).__init__() 27 | self.method = method 28 | self.hidden_dim = hidden_dim 29 | 30 | if method == 'general': 31 | self.w = nn.Linear(hidden_dim, hidden_dim) 32 | elif method == 'concat': 33 | self.w = nn.Linear(hidden_dim*2, hidden_dim) 34 | self.v = torch.nn.Parameter(torch.FloatTensor(hidden_dim)) 35 | 36 | def forward(self, dec_out, enc_outs): 37 | if self.method == 'dot': 38 | attn_energies = self.dot(dec_out, enc_outs) 39 | elif self.method == 'general': 40 | attn_energies = self.general(dec_out, enc_outs) 41 | elif self.method == 'concat': 42 | attn_energies = self.concat(dec_out, enc_outs) 43 | return F.softmax(attn_energies, dim=0) 44 | 45 | def dot(self, dec_out, enc_outs): 46 | return torch.sum(dec_out*enc_outs, dim=2) 47 | 48 | def general(self, dec_out, enc_outs): 49 | energy = self.w(enc_outs) 50 | return torch.sum(dec_out*energy, dim=2) 51 | 52 | def concat(self, dec_out, enc_outs): 53 | dec_out = dec_out.expand(enc_outs.shape[0], -1, -1) 54 | energy = torch.cat((dec_out, enc_outs), 2) 55 | return torch.sum(self.v * self.w(energy).tanh(), dim=2) 56 | 57 | 58 | class DecRNN(nn.Module): 59 | def __init__(self, vsz, embed_dim, hidden_dim, n_layers, use_birnn, 60 | dout, attn, tied): 61 | super(DecRNN, self).__init__() 62 | hidden_dim = hidden_dim*2 if use_birnn else hidden_dim 63 | 64 | self.embed = nn.Embedding(vsz, embed_dim) 65 | self.rnn = nn.LSTM(embed_dim, hidden_dim , n_layers) 66 | 67 | self.w = nn.Linear(hidden_dim*2, hidden_dim) 68 | self.attn = Attention(hidden_dim, attn) 69 | 70 | self.out_projection = nn.Linear(hidden_dim, vsz) 71 | if tied: 72 | if embed_dim != hidden_dim: 73 | raise ValueError( 74 | f"when using the tied flag, embed-dim:{embed_dim} \ 75 | must be equal to hidden-dim:{hidden_dim}") 76 | self.out_projection.weight = self.embed.weight 77 | self.dropout = nn.Dropout(dout) 78 | 79 | def forward(self, inputs, hidden, enc_outs): 80 | inputs = inputs.unsqueeze(0) 81 | embs = self.dropout(self.embed(inputs)) 82 | dec_out, hidden = self.rnn(embs, hidden) 83 | 84 | attn_weights = self.attn(dec_out, enc_outs).transpose(1, 0) 85 | enc_outs = enc_outs.transpose(1, 0) 86 | context = torch.bmm(attn_weights.unsqueeze(1), enc_outs) 87 | cats = self.w(torch.cat((dec_out, context.transpose(1, 0)), dim=2)) 88 | pred = self.out_projection(cats.tanh().squeeze(0)) 89 | return pred, hidden 90 | 91 | 92 | class Seq2seqAttn(nn.Module): 93 | def __init__(self, args, fields, device): 94 | super().__init__() 95 | self.src_field, self.tgt_field = fields 96 | self.src_vsz = len(self.src_field[1].vocab.itos) 97 | self.tgt_vsz = len(self.tgt_field[1].vocab.itos) 98 | self.encoder = EncRNN(self.src_vsz, args.embed_dim, args.hidden_dim, 99 | args.n_layers, args.bidirectional, args.dropout) 100 | self.decoder = DecRNN(self.tgt_vsz, args.embed_dim, args.hidden_dim, 101 | args.n_layers, args.bidirectional, args.dropout, 102 | args.attn, args.tied) 103 | self.device = device 104 | self.n_layers = args.n_layers 105 | self.hidden_dim = args.hidden_dim 106 | self.use_birnn = args.bidirectional 107 | 108 | def forward(self, srcs, tgts=None, maxlen=100, tf_ratio=0.0): 109 | slen, bsz = srcs.size() 110 | tlen = tgts.size(0) if isinstance(tgts, torch.Tensor) else maxlen 111 | tf_ratio = tf_ratio if isinstance(tgts, torch.Tensor) else 0.0 112 | 113 | enc_outs, hidden = self.encoder(srcs) 114 | 115 | dec_inputs = torch.ones_like(srcs[0]) * 2 # is mapped to id=2 116 | outs = [] 117 | 118 | if self.use_birnn: 119 | def trans_hidden(hs): 120 | hs = hs.view(self.n_layers, 2, bsz, self.hidden_dim) 121 | hs = torch.stack([torch.cat((h[0], h[1]), 1) for h in hs]) 122 | return hs 123 | hidden = tuple(trans_hidden(hs) for hs in hidden) 124 | 125 | for i in range(tlen): 126 | preds, hidden = self.decoder(dec_inputs, hidden, enc_outs) 127 | outs.append(preds) 128 | use_tf = random.random() < tf_ratio 129 | dec_inputs = tgts[i] if use_tf else preds.max(1)[1] 130 | return torch.stack(outs) 131 | -------------------------------------------------------------------------------- /options.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | 4 | def train_opts(parser): 5 | group = parser.add_argument_group('Training') 6 | group.add_argument('--train', default='./sample_data/sample_train.tsv', 7 | help='path to a train data') 8 | group.add_argument('--valid', default='./sample_data/sample_valid.tsv', 9 | help='path to a validation data') 10 | group.add_argument('--batch-size', type=int, default=32, 11 | help='batch size') 12 | group.add_argument('--savedir', default='./checkpoints', 13 | help='path to save models') 14 | group.add_argument('--max-epoch', type=int, default=0, 15 | help='number of epochs') 16 | group.add_argument('--max-update', type=int, default=0, 17 | help='number of updates') 18 | group.add_argument('--lr', type=float, default=0.25, 19 | help='learning rate') 20 | group.add_argument('--min-lr', type=float, default=1e-5, 21 | help='minimum learning rate') 22 | group.add_argument('--clip', type=float, default=0.1, 23 | help='gradient cliping') 24 | group.add_argument('--tf-ratio', type=float, default=0.5, 25 | help='teaching force ratio') 26 | group.add_argument('--gpu', action='store_true', 27 | help='whether gpu is used') 28 | return group 29 | 30 | 31 | def translate_opts(parser): 32 | group = parser.add_argument_group('Translation') 33 | group.add_argument('--model', default='./checkpoints/checkpoint_best.pt', 34 | help='model file for translation') 35 | group.add_argument('--input', default='./sample_data/sample_test.txt', 36 | help='input file') 37 | group.add_argument('--batch-size', type=int, default=32, 38 | help='batch size') 39 | group.add_argument('--maxlen', type=int, default=100, 40 | help='maximum length of output sentence') 41 | group.add_argument('--gpu', action='store_true', 42 | help='whether gpu is used') 43 | return group 44 | 45 | 46 | def model_opts(parser): 47 | group = parser.add_argument_group('Model\'s hyper-parameters') 48 | group.add_argument('--embed-dim', type=int, default=200, 49 | help='dimension of word embeddings') 50 | group.add_argument('--src_min-freq', type=int, default=0, 51 | help='''map words of source side appearing less than 52 | threshold times to unknown''') 53 | group.add_argument('--tgt_min-freq', type=int, default=0, 54 | help='''map words of target side appearing less than 55 | threshold times to unknown''') 56 | group.add_argument('--rnn', choices=['lstm'], default='lstm', 57 | help='rnn\'s architechture') 58 | group.add_argument('--hidden-dim', type=int, default=1024, 59 | help='number of hidden units per layer') 60 | group.add_argument('--n-layers', type=int, default=2, 61 | help='number of LSTM layers') 62 | group.add_argument('--bidirectional', action='store_true', 63 | help='whether use bidirectional LSTM for encoder') 64 | group.add_argument('--attn', choices=['dot', 'general', 'concat'], 65 | default='dot', help='attention type') 66 | group.add_argument('--dropout', type=float, default=0.2, 67 | help='dropout applied to layers (0 means no dropout)') 68 | group.add_argument('--tied', action='store_true', 69 | help='tie the word embedding and softmax weight') 70 | return group 71 | 72 | -------------------------------------------------------------------------------- /sample_data/sample_ref.txt: -------------------------------------------------------------------------------- 1 | they finally acknowledged it as true . 2 | he didn 't care for swimming . 3 | he is no less kind than his sister . 4 | you must be back before ten . 5 | break a leg . 6 | she lives next door to us . 7 | i 'm about to tell you the answer . 8 | i 'm a person who lives for the moment . 9 | we have this game on ice . 10 | will you give me your reasons for doing this ? 11 | she likes the teacher . 12 | it 's business . 13 | these shoes will last you two years . 14 | he made his son attend the meeting in his place . 15 | give your argument against going . 16 | at the end of a working day everybody is in a hurry to get home . 17 | i was unable to look her in the face . 18 | some people go to church on sunday morning . 19 | i must put my watch forward two minutes . 20 | that is the boy i saw yesterday . 21 | ten years is a long time to wait . 22 | i met him in tokyo by chance . 23 | i often go swimming in the river . 24 | he called out for help . 25 | he rescued the child from the fire . 26 | i cannot agree to his proposal . 27 | we read the letter again and again . 28 | i 'm happy to see you . 29 | ask your dad to help you . 30 | they adopted the proposal . 31 | i feel good in a special way . 32 | nobody has seen him ever since . 33 | she has seen better days . 34 | please pass it to the other boys . 35 | i still bear his name in mind . 36 | i want to marry you . 37 | we see them on occasion . 38 | the earth rotates . 39 | tell me which you want . 40 | i wish i knew where he was ! 41 | we took an examination in math last week . 42 | check , please . 43 | i listened , but i heard nothing . 44 | she did not marry the man . 45 | he doesn 't read many books . 46 | she doesn 't have any enemies . 47 | in the summer , it 's very humid . 48 | he made me write the letter with a pen . 49 | he got tired of reading . 50 | put down your name and address here . 51 | she played the piano well enough . 52 | i 'm still waiting for my order . 53 | there are a great many books in this library . 54 | you should avail yourself of every opportunity . 55 | how many schools are there in your city ? 56 | i don 't like sad movies . 57 | she was very angry with me when i forgot the appointment . 58 | people of your age often have this problem . 59 | i like your car . 60 | she stood looking at a boat on the river . 61 | whether he comes or not , i 'll go . 62 | i don 't get up as early as my mother . 63 | any flower will do , so long as it is red . 64 | don 't forget to add me in . 65 | you are the only one . 66 | i stick to the point . 67 | i 'll be here by monday . 68 | she is the happiest in her class . 69 | how beautiful the rising sun is ! 70 | nothing is so precious as time . 71 | you did not need to come so early . 72 | i had some questions and raised my hand . 73 | she expressed satisfaction with her life . 74 | it was around eight last night when the meeting broke up . 75 | the life of a person is a transient thing . 76 | don 't raise my hopes like that . 77 | they won by force of numbers . 78 | i was eating dinner then . 79 | it 's hot today . 80 | he is a detective . 81 | he always takes sides with her . 82 | jane always made out that she was very rich . 83 | what a bad boy he is ! 84 | he is what we call the man of the hour . 85 | in fact , he is a nice fellow . 86 | where does the answer lie ? 87 | you may as well prepare for your examination . 88 | i can 't see well . 89 | can we rent a car ? 90 | a wise man would not say such a thing . 91 | he told me that she was sick . 92 | there was nobody in the garden . 93 | our college is far from the station . 94 | he had been writing a letter . 95 | he spoke to her about the matter . 96 | let me see it . 97 | he sat there with his eyes closed . 98 | you should work hard while you are young . 99 | he made an abrupt departure . 100 | this is how the accident happened . 101 | jane was a stewardess when she was young . 102 | he was afraid of his wife . 103 | how far is it to the station ? 104 | he is as diligent a man as ever lived . 105 | you should not break your promise . 106 | we want a house of our own . 107 | you ask me to do the impossible . 108 | this baggage three times as heavy as that one . 109 | i sometimes look back on the good days i had in london . 110 | i got out of the taxi . 111 | i am due to speak tonight . 112 | the girls are as busy as bees . 113 | there are more girls than boys in our school . 114 | the days are getting longer and longer . 115 | lay it on the table . 116 | what are you going to do today ? 117 | it rained hard last night . 118 | how about going to the movies tonight ? 119 | you have no obligation to help us . 120 | of course , i will go there with you . 121 | they slept a little in the room . 122 | speak your mind . 123 | the old man died last week . 124 | i was astonished to hear what had happened . 125 | his hands had turned blue because of the cold . 126 | i couldn 't make her out at all . 127 | it is outside my area of study . 128 | it was careless of you to forget your homework . 129 | there is a park in front of my house . 130 | i 'm not tired at all . 131 | it makes no difference who i meet . 132 | jane is no less beautiful than her mother . 133 | what on earth is the matter ? 134 | i 'd like to go skiing with her . 135 | the mystery story is so hard that i don 't like it . 136 | her teacher praised her . 137 | here is a letter for you . 138 | the meaning of the words is intelligible . 139 | speaking of sports , can you play tennis ? 140 | it 's already cleared up . 141 | i get up at six every morning . 142 | the bank was held up last night . 143 | i want to marry a girl like her . 144 | he told us to keep quiet . 145 | he is as great a statesman as ever lived . 146 | are you proud of your father ? 147 | computers can do the job with ease . 148 | this case has an affinity with that one . 149 | there 's an old cherry tree in the garden . 150 | i do not like cats and my brother does not either . 151 | my brother has no occupation now . 152 | he did not so much as turn his head . 153 | he got off at the next bus stop . 154 | there is no telling who did this . 155 | she showed me her room . 156 | he asked me which way to go . 157 | she is anxious to know the results . 158 | there are all kinds of flowers in that garden . 159 | he had a blue jacket on . 160 | no one is coming . 161 | he has a warm heart . 162 | she recollected the first day when she went to school . 163 | please take more care in the future . 164 | i had a lot of difficulty getting in touch with her . 165 | the policeman 's quick arrival surprised us . 166 | get in touch with me as soon as you arrive here . 167 | it is fact that he ran away from home . 168 | the news made her very sad . 169 | thank you very much for the wonderful dinner last night . 170 | i was ten minutes late for school . 171 | how 's the weather ? 172 | she worked to excess . 173 | father took his place at the head of the table . 174 | he is still alive . 175 | my father put a ladder against the tree . 176 | would you please open the door ? 177 | i am to have lunch with him . 178 | we need some money . 179 | i walk to the park . 180 | just wait for me there . 181 | where 's your better half ? 182 | he is likely to win this game . 183 | i wonder if someone could help me do this . 184 | there are many movie theaters in this city . 185 | let 's meet here again tomorrow . 186 | unless it rains , i will go , too . 187 | i love this job from the bottom of my heart . 188 | i 've never been to such a nice party . 189 | they booted him out of school for not studying . 190 | i 'll give you a call before i visit you . 191 | his story rings true . 192 | he left a while ago . 193 | what does this kanji mean ? 194 | it is necessary for you to go there immediately . 195 | my son shall do the work . 196 | i 'd like to have a glass of wine . 197 | he lived a simple life . 198 | he had no hat on . 199 | my son has gone to america to study medicine . 200 | i ran out of breath . 201 | i don 't care too much for hot food . 202 | we have to start at once . 203 | i am just a nobody . 204 | this question isn 't easy . 205 | may i go home now ? 206 | i like both . 207 | they sat under a tree . 208 | i got some sand in my eye . 209 | the old man stopped for a moment to rest . 210 | how many times a month do you write home ? 211 | tony was not busy then . 212 | all sold out ! 213 | we 'll fly there in 50 minutes . 214 | she keeps company with a foreign student . 215 | yesterday i ran across her at the station . 216 | we should be there by noon . 217 | it was colder yesterday than today . 218 | you made the same mistake as last time . 219 | my uncle bought me this book . 220 | being tired , she went to bed early . 221 | the weather is unusual today . 222 | he is being very careful . 223 | it is hard for an old man to change his way of thinking . 224 | you had better go to bed early . 225 | he was injured in the accident . 226 | well do i remember the man 's name . 227 | at last , they came to a decision . 228 | he is on the team . 229 | why don 't you give up smoking ? 230 | they were the first to get into the bus . 231 | it 's a pity that you should leave japan . 232 | that is surprising . 233 | we came to the town , where we stayed for a week . 234 | please leave my things alone . 235 | but you will write , won 't you ? 236 | it is still immoral . 237 | i 'd like some more butter . 238 | that boy is tony , isn 't he ? 239 | i like summer the best . 240 | the airplane fell to the earth . 241 | she put down her pen . 242 | there was almost nothing in the room . 243 | i do not think it will rain this afternoon . 244 | the road divides here into two . 245 | you have a genius for music . 246 | she is great at skiing . 247 | he exhausted his money . 248 | it all turned out for the best in the end . 249 | he stopped smoking . 250 | he engaged to pay the bill as soon as possible . 251 | he fell behind in his english class . 252 | he came back to japan for the first time in eight years . 253 | there is a beautiful walk along the river . 254 | let me buy you a drink . 255 | i was very worried about her . 256 | few people know each other well . 257 | how did the accident come about ? 258 | what time do you leave here ? 259 | mary became a typist . 260 | my father boasts of the fact that he has never had a traffic accident . 261 | he acquainted me with the change of the plan . 262 | sit down with me . 263 | please send the letter by express . 264 | this is an important letter . 265 | take as many as you want . 266 | his novels are too deep for me . 267 | he relies on his wife financially . 268 | you are old enough to be independent of your parents . 269 | we walked to the river . 270 | i made him change his plan . 271 | he is the last person to betray his friends . 272 | he could not go on a trip for lack of money . 273 | i commute to work for an hour . 274 | they jumped into the water one after another . 275 | i was used to the heat . 276 | please drop in on your way home . 277 | he gave up going abroad . 278 | don 't put the company in danger . 279 | someone is at the door . 280 | he gradually came to love his father . 281 | i saw the moon above the roof . 282 | he is supposed to be at home today . 283 | did you practice the piano this morning ? 284 | you must think of your old parents at home . 285 | sad to say , her son died young . 286 | if it rains tomorrow , will you stay at home ? 287 | do you have a student fare ? 288 | let 's have dinner . 289 | if something happens , feel free to call me . 290 | you need not take the trouble to go . 291 | in any case , it 's none of your business . 292 | three years is a long time , i feel . 293 | would you put on the air conditioning ? 294 | i didn 't want to be defeated in front of my friends . 295 | as soon as you get the wall painted , you can go home . 296 | i 'm very sleepy now . 297 | above the music , i could hear her crying . 298 | we had the meeting in this room last friday . 299 | who do you want to speak to ? 300 | his father eats there twice a week . 301 | he was terribly poor when he was young . 302 | you may open the window . 303 | driving too fast is dangerous . 304 | i play with him . 305 | i am a man . 306 | what 's the purpose of your visit ? 307 | please tell me where the bus stop is . 308 | if you must , you must . 309 | i haven 't made up my mind sufficiently enough to agree with you . 310 | can you account for why our team lost ? 311 | i 'll be on duty this sunday . 312 | i am as much in the wrong as you are about not writing before this . 313 | it took them two years to build the house . 314 | i want to see my friends in canada . 315 | i 'll let you know in advance . 316 | i thought i must do it . 317 | you should not waste your time . 318 | never tell a lie ! 319 | i 'll get him to carry this box upstairs . 320 | instead of going to school , he stayed at home . 321 | jim is not a lawyer but a doctor . 322 | there were few , if any , trees . 323 | where should i sit ? 324 | the secret of success is not to think of failure . 325 | she goes by the name of amy . 326 | she works in a bank . 327 | can you fix him up for the night ? 328 | but his name is slightly familiar to me . 329 | mr smith and i have been acquainted with each other for a long time . 330 | he has seen much of the world . 331 | i wish i could speak english . 332 | you should have replied to his letter . 333 | which do you like better , this or that ? 334 | she does not take a rest for an instant . 335 | he shook hands with his friend . 336 | i 'll be fine if i take a little rest . 337 | we want something new . 338 | he is fatter than when i last saw him . 339 | i do not quite agree with you . 340 | i 'm done with that lesson . 341 | early rising is good for the health . 342 | he finished this work for himself . 343 | his answer was to strike me on the head . 344 | if you are going to have a party , please count me in . 345 | they got to a village under a hill . 346 | english is difficult , isn 't it ? 347 | speak clearly so that everyone may hear you . 348 | it never occurred to me that she loved me . 349 | she is in bed with a cold . 350 | don 't be afraid of making mistakes . 351 | i 'll never forget what you told me . 352 | he is in service . 353 | i really like him ! 354 | riding a horse is great fun . 355 | it would rain just when i wanted to go out . 356 | my sister is now bound up in her work . 357 | none of the telephones are working . 358 | we played baseball . 359 | how large is the population of tokyo ? 360 | we thought we had the game in the bag . 361 | i can 't get along with that man any more . 362 | can other people catch it ? 363 | she felt as if she had seen a ghost . 364 | i might well tell you this . 365 | takeshi did come , but didn 't stay long . 366 | compare your answer with tom 's . 367 | give me the details of it . 368 | this morning i got up later than usual . 369 | this is the worst of all . 370 | shall i cook dinner today ? 371 | he made his way through the crowd . 372 | i can hear someone talking in the next room . 373 | where do we get the textbooks ? 374 | she closed all the windows in the room . 375 | i don 't like shellfish . 376 | do you have small change with you ? 377 | nothing is more valuable than health . 378 | i finished reading the book last night . 379 | your son took part in the student movement , i hear . 380 | i am very poor at sports . 381 | i can do without his help . 382 | you don 't have to get up so early . 383 | he can speak both english and french . 384 | if a thing is worth doing it is worth doing badly . 385 | he gave in . 386 | by all means . go ahead . 387 | she tried not to shed tears . 388 | the story came home to her . 389 | she was pleased with her new dress . 390 | he will stay in tokyo for several weeks . 391 | they were busy . 392 | i was walking to the station then . 393 | we walked along the street . 394 | if you telephone her again , that 'll be the last straw ! 395 | the car accident took place just in front of me . 396 | the girls are facing each other . 397 | money cannot buy freedom . 398 | i have no homework today . 399 | this old coat has had it . 400 | there is little water in the bucket . 401 | when he got into trouble , he turned to his parents for help . 402 | the sun went behind the clouds . 403 | his talk was a mere game . 404 | i dare say it is a lie . 405 | she stood up when her teacher came in . 406 | he likes disney . 407 | the rain came down in buckets . 408 | don 't bother coming in this rain . 409 | i 'll pick you up at your home . 410 | let me know by wire . 411 | i will make certain of the situation . 412 | it 's our pleasure . 413 | i think it 's worth a try . 414 | he is giving an address . 415 | always keep this dictionary handy . 416 | next week , he is going to new york on business . 417 | the child played the baby to his mother . 418 | he tried to soothe the angry man . 419 | he wants to dispose of his books . 420 | you will do exactly as i say . 421 | put that book aside for me . 422 | when she heard it , she just cried . 423 | i have just now finished doing my english homework . 424 | i make it rule never to borrow money . 425 | ken was in japan last year . 426 | i hear he has been ill since last month . 427 | can you sit for the exam next week ? 428 | she turned off the lights . 429 | i meet him from time to time . 430 | i asked her if she could go to the party . 431 | don 't eat too much . 432 | i feel very cold . 433 | i made an effort to finish my work . 434 | i want a book . 435 | it 's touch and go . 436 | i refuse to answer the question . 437 | would you mind waiting a few minutes ? 438 | you brought it on yourself . 439 | how long will you stay in japan ? 440 | i can solve this problem . 441 | she retorted against him . 442 | his composition was free from mistakes . 443 | we got to know each other rather well on our recent trip . 444 | i want to get in touch with him . 445 | is there any need for me to go there ? 446 | i have no face to turn to . 447 | he is gone on that girl . 448 | all boys like to play baseball . 449 | don 't give in . 450 | i waited and waited . 451 | because of illness , she couldn 't come . 452 | i bought a watch with cash . 453 | his bicycle is blue . 454 | this door won 't shut . 455 | we must take this matter into account as a whole . 456 | are you for the war or against it ? 457 | it is probable that he forget about it . 458 | he said that he goes for a long walk every morning . 459 | i was astonished at the news . 460 | how far is it from here to tokyo ? 461 | sorry , i wish you wouldn 't . 462 | i arrived at narita airport this morning . 463 | he promised not to tell . 464 | he looks young considering his age . 465 | they made me go there alone . 466 | let me know the details . 467 | you are absolutely right . 468 | his work finished , he went to bed . 469 | my sister washes her hair every morning . 470 | please give me help in taking this down . 471 | i do not care for him . 472 | nothing can be better than that . 473 | this will do for now . 474 | i hope it will be the only one . 475 | she has a son who is a doctor . 476 | the teacher looked over the examination papers . 477 | he had the luck to catch the train . 478 | i will go on foot . 479 | she was sore at me for being late . 480 | i 'd better not eat that . 481 | i will gladly help you . 482 | i went fishing in the river yesterday . 483 | i have been to the station . 484 | he put some coins in the box . 485 | this is a book . 486 | he had the table to himself . 487 | i reached school before the rain started . 488 | the country was gearing up for war . 489 | this song is familiar to me . 490 | time will tell which is right . 491 | did you clean your room ? 492 | he is good at tennis . 493 | he is the last person to speak ill of others . 494 | may i have a road map ? 495 | i cannot make anything of what he says . 496 | it took a long time to accustom myself to the noise . 497 | you ought not to say such a thing . 498 | what good books these are . 499 | for all his efforts , he didn 't succeed . 500 | where do you come from ? 501 | -------------------------------------------------------------------------------- /sample_data/sample_test.txt: -------------------------------------------------------------------------------- 1 | 彼 ら は つい に それ が 真実 だ と 認め た 。 2 | 彼 は 水泳 が 得意 で は な かっ た 。 3 | 彼 は お 姉 さん に 劣 ら ず 親切 だ 。 4 | 10 時 前 に 戻 ら な けれ ば な ら な い 。 5 | 成功 を 祈 る わ 。 6 | 彼女 は 私 たち の 隣 の 家 に す ん で い る 。 7 | あなた に 返事 を し よ う と し て い る ところ で す 。 8 | 私 は 刹那 的 な 生き 方 を し て い る 人間 で す 。 9 | この 試合 は いただ き だ 。 10 | こんな こと を し た 理由 を 言 い な さ い 。 11 | 彼女 は その 先生 が 好き で す 。 12 | それ が 仕事 で す 。 13 | この 靴 は 二 年 も つ で しょ う 。 14 | 彼 は 自分 の 代わり に 息子 を その 会合 に 出席 さ せ た 。 15 | 行 か な い 理由 を 述べ なさ い 。 16 | 一 日 の 仕事 が 終わ る と 皆 家路 を 急 ぐ 。 17 | 私 は 彼女 の 顔 を まとも に 見 る こと が な かっ た 。 18 | 日曜 日 の 朝 に 教会 に 行 く 人 も い る 。 19 | 私 は 時計 を 2 分 進め な けれ ば な ら な い 。 20 | あれ は 私 が 昨日 会 っ た 少年 で す 。 21 | 10 年 は 待 つ に は 長 い 時間 だ 。 22 | 私 は 東京 で 偶然 彼 に 会 っ た 。 23 | 私 は よく 川 へ 泳ぎ に 行 く 。 24 | 彼 は 大声 で 助け を 求め た 。 25 | 彼 は その 子供 を 火事 から 救い出 し た 。 26 | 彼 の 提案 に は 同意 でき な い 。 27 | 私 達 は その 手紙 を 何 度 も 繰り返 し て 読 ん だ 。 28 | 私 は 君 に 会え て うれし い 。 29 | お 父 さん に 手伝 っ て もら い なさ い 。 30 | 彼 ら は その 提案 を 採択 し た 。 31 | 私 は 特別 気持ち が い い 。 32 | それ から ずっと 彼 を 見 た もの は な い 。 33 | 彼女 に も 全盛 時代 が あ っ た 。 34 | それ を ほか の 子供 たち に も 回 し て くださ い 。 35 | 私 は いつ まで も 彼 の 名 を 覚え て い る 。 36 | 結婚 し ま しょ う 。 37 | 私 たち は 時々 彼 ら に 会 う 。 38 | 地球 は 自転 する 。 39 | どちら が ほし い の か 言 い な さ い 。 40 | 彼 の 居 場所 が 分か っ て い れ ば なあ 。 41 | 先週 数学 の 試験 を 受け た 。 42 | 清算 を お 願 い し ま す 。 43 | 耳 を 澄 ま し た が 何 も 聞こえ な かっ た 。 44 | 彼女 は その 男 と は 結婚 し な かっ た 。 45 | 彼 は あまり 本 を 読 ま な い 。 46 | 彼女 に は 敵 は い な い 。 47 | 夏 は とても 湿気 が 多 い の で す 。 48 | 彼 は 私 に ペン で 手紙 を 書 か せ た 。 49 | 彼 は 読書 に 飽き た 。 50 | ここ へ 住所 と 名前 を お 書 き くださ い 。 51 | 彼女 は かなり うま く ピアノ を 弾 い た 。 52 | 頼 ん だ 物 が まだ 来 ま せ ん 。 53 | この 図書 館 に は 非常 に たくさん の 本 が あ り ま す 。 54 | あらゆる 機会 を 利用 し なさ い 。 55 | 君 の 町 に いく つ 学校 が あ り ま す か 。 56 | 私 は 悲し い 映画 は 嫌い だ 。 57 | 私 が 約束 を 忘れ た とき 、 彼女 は とても 怒 っ た 。 58 | あなた くらい の 年齢 の 人 に よく あ る 症状 で す 。 59 | 私 は 君 の 車 が 好き だ 。 60 | 彼女 は 立 っ て 川 を 見 て い た 。 61 | 彼 が 来 よ う が 来 まい が 、 私 は 行 く 。 62 | 私 は 母 ほど 早 く 起き ま せ ん 。 63 | 赤 く さえ あ れ ば 、 どんな 花 で も 結構 で す 。 64 | 忘れ ず に 仲間 に 入れ て くれ 。 65 | 貴方 達 は 、 一 つ で す 。 66 | 私 は 要点 を はず さ な い 。 67 | 月曜 日 まで に ここ に 来 て い ま す 。 68 | 彼女 は クラス で 一番 幸せ で す 。 69 | 朝日 は なん と 美し い の だ ろ う 。 70 | 時間 ほど 貴重 な 物 は な い 。 71 | そんな に 早 く 来 る 必要 は な かっ た 。 72 | 私 は 質問 が あ っ た の で 、 手 を 挙げ た 。 73 | 彼女 は 自分 人生 に 満足 し て い る と い っ た 。 74 | 会 が 散会 し た の は 昨夜 8 時 ごろ だっ た 。 75 | 人 の 人生 は 、 はかな い もの だ 。 76 | そんな に 気 を 持 た せ な い で 。 77 | 彼 ら は 数 の 力 で 勝 っ た 。 78 | 私 は その 時 夕食 を 食べ て い ま し た 。 79 | 今日 は 暑 い 。 80 | 彼 は 刑事 だ 。 81 | 彼 は いつ も 彼女 の 見 方 を する 。 82 | ジェーン は いつ も とても 金持ち の よう な そぶり だっ た 。 83 | 彼 は なん と 悪 い 子 な の だ ろ う 。 84 | 彼 は いわゆる 時 の 人 だ 。 85 | 本当 は 、 彼 は い い やつ な ん だ 。 86 | 答え は どこ に あ る ん だ ろ う 。 87 | 君 は 試験 の 準備 を し た ほう が よ い 。 88 | 私 は 物 が よく 見え ま せ ん 。 89 | 車 を 借り られ ま す か 。 90 | 賢 い 人 なら そんな こと 言 わ な い で しょ う 。 91 | 彼 は 私 に 彼女 が 病気 だ と 言 っ た 。 92 | 庭 に は 誰 も い な かっ た 。 93 | 大学 は 駅 から 遠 い の で す 。 94 | 彼 は 手紙 を 書 き 続け て い た 。 95 | 彼 は その こと で 彼女 と 相談 し た 。 96 | それ 、 ちょっと 見せ て 。 97 | 彼 は 目 を と し て そこ に 座 り ま し た 。 98 | 若 い うち は 苦労 す べ き だ 。 99 | 彼 は 突然 出発 し た 。 100 | この よう に し て その 事件 は 起こ っ た の で す 。 101 | ジェーン は 若 い 頃 スチュワーデス だっ た 。 102 | 彼 は 奥 さん が 怖 かっ た 。 103 | 駅 まで は どの くらい あ り ま す か 。 104 | 彼 は 今 まで に い な い ほど 勤勉 な 男 だ 。 105 | 約束 を 破 っ て は な ら な い 。 106 | 自分 たち の 持ち家 が 欲し い 。 107 | 君 は 僕 に な い もの ねだり を し て い る ね 。 108 | この 荷物 は あの 荷物 の 3 倍 以上 の 重 さ だ 。 109 | ロンドン で 過ご し た 楽し い 日々 の こと を 時々 思い出 す 。 110 | 私 は タクシー から 出 た 。 111 | 私 は 今夜 話 す こと に な っ て い る 。 112 | その 女 の こ 達 は 、 とても 忙し い 。 113 | 私 たち の 学校 は 男子 より 女子 の 方 が 多 い 。 114 | 日 が だんだん 長 く な っ て き て い ま す 。 115 | それ を テーブル の 上 に 置 き なさ い 。 116 | 今日 は 何 を する つもり で す か 。 117 | 昨夜 は ひど く 雨 が 降 っ た 。 118 | 今夜 は 映画 に で も 行 き ま しょ う 。 119 | あなた は 我々 を 援助 する 必要 は な い 。 120 | もちろん 、 私 は あなた と そこ に 行 く つもり で す 。 121 | 彼 ら は 部屋 で 少し 寝 た 。 122 | 気持ち を 隠 さ ず 話 し なさ い 。 123 | その 老人 は 先週 な く な り ま し た 。 124 | 何 が 起こ っ た か 聞 い て びっくり し た 。 125 | 彼 の 手 は 寒 さ で 青白 く な っ て い た 。 126 | 彼女 と 言 う 人 が ぜんぜん 分か ら な かっ た 。 127 | それ は 私 の 研究 外 の こと で す 。 128 | おまえ が 宿題 を 忘れ た の は 不 注意 だっ た 。 129 | 私 の 家 の 前 に 公園 が あ り ま す 。 130 | 僕 は 、 ぜんぜん 疲れ て い ま せ ん 。 131 | 誰 に 会 っ て も 、 同じ こと さ 。 132 | ジェーン は 、 お 母 さん と 同じ くらい の 美人 で す 。 133 | 一体 全体 どう し た の だ 。 134 | 私 は 彼女 と スキー に 行 き た い 。 135 | その 探偵 小説 は 大変 難し い の で 、 好き で は な い 。 136 | 先生 は 彼女 を ほめ た 。 137 | はい 、 あなた あて の 手紙 で す よ 。 138 | その 言葉 の 意味 は 理解 し やす い 。 139 | スポーツ と 言 え ば 、 君 は テニス が 出来 ま す か 。 140 | もう 晴れ た よ 。 141 | 私 は 毎朝 6 時 に 起き る 。 142 | 昨夜 その 銀行 に 強盗 が 入 っ た 。 143 | 彼女 の よう な 女性 と 結婚 し た い ね 。 144 | 彼 は 静か に する よう に 私 たち に い っ た 。 145 | 彼 は 古来 ま れ な 大 政治 家 で あ る 。 146 | あなた の お 父 さん を 誇り に 思 い ま す か 。 147 | コンピューター なら その 仕事 を 簡単 に でき る 。 148 | この 事件 は あの 事件 と 似 た ところ が あ る 。 149 | 庭 に 古 い 桜 の 木 が 一 本 あ り ま す 。 150 | 私 は 猫 が 嫌い だ し 私 の 兄 も そう だ 。 151 | 兄 は 今 、 失業 中 で す 。 152 | 彼 は 顔 を 振り向け さえ し な かっ た 。 153 | 彼 は 次 の バス 停 で 降り た 。 154 | 誰 が これ を し た の か は わか ら な い 。 155 | 彼女 は 私 に 部屋 を 見せ て くれ た 。 156 | 彼 は 私 に どっち へ 行 け ば い い の か 尋ね た 。 157 | 彼女 は その 結果 を とても 知 り たが っ て い る 。 158 | その 庭 に は あらゆる 種類 の 花 が あ る 。 159 | 彼 は 青 い 上着 を 着 て い た 。 160 | 誰 も 乗 っ て こ な い だ ろ う 。 161 | 彼 は 暖か い 心 の 持ち主 で す 。 162 | 彼女 は 学校 に 行 っ た 最初 の 日 を 思い出 し た 。 163 | 将来 は もう 少し 注意 し なさ い 。 164 | 私 は 彼女 と 連絡 を と る の に 大変 苦労 し た 。 165 | 警官 が すぐ に 到着 し た の に は 驚 い た 。 166 | こちら に 着 い たら すぐ 連絡 し て 下さ い 。 167 | 彼 が 家出 し た の は 事実 だ 。 168 | その 知らせ は 彼女 を たいへん 悲し ま せ た 。 169 | 昨日 は 素晴らし い 夕食 に ご 招待 し て もら っ て 、 ありがとう 。 170 | 私 は 学校 に 10 分 遅刻 し た 。 171 | どんな 天気 で す か 。 172 | 彼女 は 過度 に 働 き すぎ だ 。 173 | 父 は テーブル の 自分 の 席 に 着 い た 。 174 | 彼 は まだ 生き て い る 。 175 | 父 は 木 に はしご を 立て かけ た 。 176 | ドア を 開け て い た いただけ ま せ ん か 。 177 | 私 は 彼 と 昼食 を 食べ る 予定 だ 。 178 | 私 たち は お 金 が 少し 必要 だ 。 179 | 私 は 公園 に 歩 く 。 180 | そこ で 待 っ て て くださ い 。 181 | 奥 さん は どこ に 行 っ ちゃ た の 。 182 | 彼 は この 試合 を 勝ち そう だ 。 183 | 誰 か これ を 手伝 っ て いただけ ま せ ん か 。 184 | この 市 に は いく つ も の 映画 館 が あ る 。 185 | ここ で 明日 また 会 い ま しょ う 。 186 | 雨 が 降 ら な けれ ば 私 も 行 き ま す 。 187 | 私 は 心 の 底 から 、 この 仕事 が 好き だ 。 188 | こんな 素晴らし い パーティー は 初めて で す 。 189 | 彼 ら は 彼 を 勉強 し な い の で 退学 さ せ た 。 190 | 君 の ところ へ 行 く 前 に 電話 を かけ ま す 。 191 | 彼 の 話 は 本当 の よう に 聞こえ る 。 192 | 彼 は 少し 前 に 去 っ た 。 193 | この 漢字 は どう 意味 で す か 。 194 | あなた は 、 すぐ そこ に 行 か な く て は いけ な い 。 195 | 息子 に その 仕事 を や ら せ よ う 。 196 | ワイン を 一杯 頂 き た い 。 197 | 彼 は 簡素 な 生活 を 送 っ た 。 198 | 彼 は 帽子 を かぶ っ て は い な かっ た 。 199 | 息子 は 医学 の 勉強 に アメリカ に 行 き ま し た 。 200 | 私 は 息 を 切 ら せ て 走 っ た 。 201 | 私 は 辛 い 食物 は あまり 好き で は な い 。 202 | 我々 は すぐ に 出発 し な けれ ば な り ま せ ん 。 203 | 私 は ただ の 名無し の 権兵衛 で す 。 204 | この 問題 は 簡単 で は な い 。 205 | もう 家 に 帰 っ て も よ い で す か 。 206 | 私 は どちら も 好き で す 。 207 | 彼 ら は 木 の 下 に 座 っ た 。 208 | 目 に 砂 が 入 り ま し た 。 209 | 老人 は 休 む ため に 少し の 間立 ち止ま っ た 。 210 | 君 は 月 に 何 回 家 に 手紙 を か き ま す か 。 211 | トニー 君 は その 時 忙し く な かっ た 。 212 | みんな 売り切れ で す 。 213 | 飛行 機 で 50 分 で 着 く で しょ う 。 214 | 彼女 は あ る 外国 人 学生 と 付き合 っ て い る 。 215 | 昨日 、 私 は 駅 で 彼女 に 偶然 出会 っ た 。 216 | 正午 まで に は そこ に 着 く はず だ 。 217 | 昨日 は 今日 より 寒 かっ た 。 218 | 君 は 前 と 同じ 誤り を 犯 し た 。 219 | 叔父 が 私 に 本 を 買 っ て くれ た 。 220 | 疲れ て い た の で 、 彼女 は 早 く 寝 た 。 221 | 今日 は 天気 が 異常 だ 。 222 | 彼 は たいへん 注意 深 く ふるま っ て い る 。 223 | 老人 が 考え を 変え る の は 難し い 。 224 | あなた は 、 早 く 寝 た 方 が い い 。 225 | 彼 は 事故 で 負傷 し た 。 226 | その 男 の 名前 は よく 覚え て い る 。 227 | ついに 彼 ら は 決定 に 達 し た 。 228 | 彼 は その チーム の 所属 だ 。 229 | たばこ を やめ たら 。 230 | 彼 ら は バス に 乗りこ ん だ 最初 の 人 たち だっ た 。 231 | 君 が 日本 を 離れ る の は 残念 だ 。 232 | それ は 驚 く べ き 事 だ 。 233 | 私 たち は その 町 に 来 て 、 1 週間 滞在 し た 。 234 | 私 の 持ち物 に 触れ な い で くださ い 。 235 | で も 、 手紙 を 書 い て よ ね 。 236 | それ は 反道徳 的 だ 。 237 | バター を もう 少し くださ い 。 238 | あの 少年 は トニー で す ね 。 239 | 私 は 夏 が 一番 好き だ 。 240 | 飛行 機 が 地面 に 落ち た 。 241 | 彼女 は ペン を お い た 。 242 | その 部屋 に は ほとんど なに も な かっ た 。 243 | 今日 の 午後 は 雨 が 降 ら な い よう に 思 う 。 244 | 道 は ここ で 二 つ に 分かれ て い る 。 245 | あなた は 音楽 の 才能 が あ る 。 246 | 彼女 は スキー が 上手 い 。 247 | 彼 は 金 を 使 い 果た し た 。 248 | 結局 すべて が 旨 く 行 っ た 。 249 | 彼 は 喫煙 を やめ た 。 250 | 彼 は でき る だけ 早 く 勘定 を 払 う と 約束 し た 。 251 | 彼 は 英語 の 授業 で 遅れ を と っ た 。 252 | 彼 は 8 年 ぶり に 日本 に 帰 っ た 。 253 | 川沿い に きれい な 散歩道 が あ る 。 254 | 一杯 おご ら せ て 下さ い 。 255 | 私 は 彼女 に つ い て 大変 心配 し て い る 。 256 | ほとんど の 人々 が お 互い を よく 知 ら な い 。 257 | その 事故 は どんな ふう に し て 起こ っ た の で す か 。 258 | いつ ここ を お 立ち に な り ま す か 。 259 | メアリー は タイピスト に な っ た 。 260 | 父 は 車 の 無 事故 を 自慢 し て い る 。 261 | 彼 は 私 に 計画 の 変更 を 知 ら せ て き た 。 262 | 私 と いっしょ に 座り なさ い 。 263 | 手紙 を 速達 で 送 っ て くださ い 。 264 | これ は 大切 な 手紙 だ 。 265 | あなた が 欲し い だけ 取 り なさ い 。 266 | 彼 の 小説 は 私 に は 難し すぎ る 。 267 | 彼 は 経済 的 に 妻 に 頼 っ て い る 。 268 | あなた は 両親 から 独立 し て も よ い 年 だ 。 269 | 私 達 は 歩 い て 川 へ 行 き ま し た 。 270 | 私 は 彼 に 計画 を 変更 さ せ た 。 271 | 彼 は 友達 を 裏切 る よう な 人 で は な い 。 272 | 彼 は 金 が な い ため 旅行 に 行け な かっ た 。 273 | 私 は 1 時間 通勤 する 。 274 | 彼 ら は 次 から 次 へ と 水 の 中 に 飛びこ ん だ 。 275 | 私 は 暑さ に は 慣れ て い た 。 276 | 家 に 帰 る 途中 で どうぞ 立ち寄 っ て くださ い 。 277 | 彼 は 海外 旅行 を あきらめ た 。 278 | 会社 を 危険 な 目 に あわせ な い で 。 279 | だれ か 玄関 に い る 。 280 | 彼 は 徐々 に 父 を 愛 する よう に な っ た 。 281 | 屋根 の 上 に 月 が 見え た 。 282 | 彼 は 今日 は 家 に い る はず で す 。 283 | 今朝 ピアノ の 練習 を し ま し た か 。 284 | 故郷 の 老い た 両親 の こと を 考え て 見 る べ き だ 。 285 | 悲し い こと に 、 彼女 の 息子 は 若死 に し た 。 286 | もし 明日 雨 が 降 れ ば 、 家 に い ま す か 。 287 | 学生 割引 は あ り ま す か 。 288 | 夕食 し ま しょ う 。 289 | 何 か あ っ たら すぐ に 連絡 し て くださ い 。 290 | あえて 行 く に 及 ば な い 。 291 | ともかく 、 君 の 知 っ た こと で は な い 。 292 | 3 年 と い う は 長 い 時間 だ と 私 は 思 う 。 293 | クーラー を 入れ て いただけ ま す か 。 294 | 私 は 友人 の 前 で 負け た く な かっ た 。 295 | 壁 を 塗り 終え たら 、 すぐ に 帰宅 し て も い い よ 。 296 | 今 とても 眠 い 。 297 | 音楽 が な っ て い る の に 彼女 の 鳴き声 が 聞こえ た 。 298 | 先週 の 金曜 日 この 部屋 で 会合 が あ っ た 。 299 | お 話 に な る 方 の お 名前 は 。 300 | 彼 の 父 は 1 週間 に 2 回 そこ で 食べ る 。 301 | 彼 は 若 い 頃 、 ひど い 貧乏 だっ た 。 302 | あなた は その 窓 を 開け て も よ い 。 303 | スピード の 出 し 過ぎ は 危険 で す 。 304 | 私 は 彼 と 一緒 に 遊 ぶ 。 305 | 俺 は 人間 だ 。 306 | ご 滞在 の 目的 は 。 307 | バス 乗り場 を 教え て くださ い 。 308 | ぜひ に と あ れ ば 仕方 が な い 。 309 | まだ 決心 が つ か な い の で 同意 でき ま せ ん 。 310 | なぜ 私 たち の チーム が 負け た か 説明 でき ま す か 。 311 | 僕 は 今度 の 日曜 日 は 勤務 だ 。 312 | ご 無 沙汰 は お 互い さま で す 。 313 | 家 を 建て る の に 彼 ら は 2 年 かか っ た 。 314 | 私 は カナダ に い る 友達 に 会 い た い 。 315 | 私 は まえ も っ て あなた に 知 ら せ る だ ろ う 。 316 | それ を し な けれ ば と 思 っ た 。 317 | 時間 を 浪費 す べ き で は な い 。 318 | 嘘 は 決して つく な ! 319 | 彼 に この 箱 を 二 階 へ 運 ん で もら お う 。 320 | 学校 に 行 か ず に 彼 は 家 に い た 。 321 | ジム は 弁護 士 で な く 医者 だ 。 322 | 木 はたとえ あ っ て も ほとんど な い 。 323 | どこ に 座 っ たら い い で す か 。 324 | 成功 の 秘訣 は 失敗 を 考え な い こと だ 。 325 | 彼女 は エイミー の 名 で 通 っ て い る 。 326 | 彼女 は 銀行 に 勤め て い る 。 327 | 今晩 泊め て くれ な い か な 。 328 | で も 名前 くらい は 知 っ て い る 。 329 | スミス 私 と は 長 い 間 の 知り合い で す 。 330 | 彼 は 人生 経験 が 豊富 で あ る 。 331 | 英語 が 話せ たら い い の だ が 。 332 | 彼 の 手紙 に 返信 を 出 す べ き だっ た の に 。 333 | あなた は これ と あれ と どちら が 好き で す か 。 334 | 彼女 は ちょっと の 間 も 休 ま な い 。 335 | 彼 は 友人 と 握手 し た 。 336 | 少し 休め ば 元気 に な る で しょ う 。 337 | 何 か 新し い もの が ほし い 。 338 | 彼 は この 前 会 っ た 時 より 太 っ て い る 。 339 | 私 は あなた と 全く 同じ 意見 と い う わけ で は な い 。 340 | 私 は その 授業 を 済ま せ て い ま す 。 341 | 早起き は 健康 に よ い 。 342 | 彼 は この 仕事 を 独力 で 完成 し た 。 343 | 彼 は 口 で は 答え ず 私 の 頭 を 殴りつけ た 。 344 | もし パーティー を 開 く なら 私 も 仲間 に 入れ て 下さ い 。 345 | 彼 ら は 丘 の ふもと の 村 に たどり着 い た 。 346 | 英語 は 難し い で す ね 。 347 | 皆 が 聞こえ る よう に はっきり と 話 し なさ い 。 348 | 彼女 が 僕 の こと 好き だ なんて 思 い も し な かっ た 。 349 | 彼女 は 風邪 を 引 い て 寝 て い る 。 350 | 間違い を する の を 恐れ て は いけ ま せ ん 。 351 | 私 が 君 に 言 っ た こと を 決し て 忘れ ま せ ん 。 352 | 彼 は 軍隊 に い る 。 353 | 彼 が 大好き ! 354 | 馬 に 乗 る 事 は とても おもしろ い 。 355 | ちょうど 出かけ た い と おも っ たら 雨 が 降 っ た 。 356 | 私 の 妹 は 仕事 に 夢中 に な っ て い る 。 357 | 電話 は どれ も 通 じ な い 。 358 | 私 たち は 野球 を し ま し た 。 359 | 東京 の 人口 は どの くらい で す か 。 360 | われわれ は 絶対 に 試合 に 勝て る と 思 っ て い た 。 361 | 私 は これ 以上 あの 男 と うま く や っ て いけ な い 。 362 | 感染 症 の 病気 で す か 。 363 | 彼女 は お ばけ で も 見 た か の よう な 気分 だっ た 。 364 | これ は 申し上げ た 方 が よ い で しょ う 。 365 | 武 は 来る に は 来 た が 、 すぐ 帰 っ た 。 366 | 君 の 答え を トム の と 比較 し なさ い 。 367 | その 内訳 は ? 368 | 私 は 今朝 いつ も よ り 遅 く 起き た 。 369 | これ が 全部 の 中 で いちばん 悪 い 。 370 | 今日 夕食 を 作 り ま しょ う か 。 371 | 彼 は 人混み を かき分け て 進 ん だ 。 372 | 隣 の 部屋 で 誰 か の 話し声 が 聞こえ る 。 373 | 教科 書 は どう し たら い い ん で しょ う か 。 374 | 彼女 は 部屋 の 窓 を すべて 閉め た 。 375 | 貝 は 好き で は な い 。 376 | 小銭 の 持ち合わせ は あ り ま す か 。 377 | 健康 は 他 の 何 より も 価値 が あ る 。 378 | 私 は 昨夜 その 本 を 読み 終え た 。 379 | 君 の 息子 さん 学生 運動 に 加わ っ て た そう だ ね 。 380 | 私 は スポーツ が とても 苦手 だ 。 381 | 彼 の 援助 なし で も や っ て いけ る 。 382 | あなた は そんな に 早 く 起き る 必要 は な い 。 383 | 彼 は 英語 か フランス 語 か どちら か 話せ る 。 384 | な す 価値 の あ る こと は しくじ る 価値 が あ る 。 385 | 彼 は 降参 し た 。 386 | もちろん 、 い い で す よ 。 387 | 彼女 は 涙 を 流 さ な い 様 に し た 。 388 | 彼女 に は その 話 が しみじみ 感 じ られ た 。 389 | 彼女 は 新し い 服 に 満足 し て い た 。 390 | 彼 は 数 週間 東京 に 滞在 する だ ろ う 。 391 | 彼 ら は 忙し かっ た 。 392 | 私 は その とき 駅 に 向か っ て 歩 い て い た 。 393 | 私 たち は 通り を 歩 い た 。 394 | 今度 また 彼女 に 電話 する と い う なら これ っき り よ 。 395 | ちょうど 私 の 目 の 前 で 自動 車 事故 が 起こ っ た 。 396 | 女の子 は お 互い に 向き合 っ て い る 。 397 | 金 で 自由 は 買え な い 。 398 | 今日 は 宿題 が 無 い 。 399 | この 古 い 上着 は もう 着 ら れ な い 。 400 | バケツ に ほとんど 水 が な い 。 401 | 困難 に 、 彼 は 両親 に 助け を 求め た 。 402 | 太陽 が 雲 の 中 へ 入 っ た 。 403 | 彼 の 話 は 冗談 だ 。 404 | おそらく それ は 嘘 で あ ろ う 。 405 | 先生 が 入 っ て くる と 彼女 は 立ち上が っ た 。 406 | 彼 は 、 ディズニー が 好き で す 。 407 | 雨 が 土砂降り に な っ た 。 408 | この 雨 の 中 を お いで に な ら な い で くださ い 。 409 | あなた の 家 に 迎え に 行 き ま す 。 410 | 電報 で お 知 ら せ 下さ い 。 411 | その 状況 を 確かめ て お き ま しょ う 。 412 | 楽し い の は むしろ 私 達 の ほう で す 。 413 | それ は や っ て み る 価値 は あ る と 思 う 。 414 | 彼 は 演説 し て い る ところ だ 。 415 | いつ も の 辞書 を 手近 に お い て お き なさ い 。 416 | 来週 彼 は 仕事 で ニューヨーク に 行 き ま す 。 417 | その 子 は 母親 に 甘え た 。 418 | 彼 は 怒 っ て い る 男 を なだめ よ う と し た 。 419 | 彼 は 本 を 処分 し た く 思 っ て い る 。 420 | 私 の 言 う 通り に し なさ い 。 421 | あの 本 を 私 の ため に と っ て お い て 下さ い 。 422 | 彼女 は それ を 聞 い た 時 、 ただ 泣 い て い た 。 423 | 私 は ちょうど 今 英語 の 宿題 が 終わ っ た ところ で す 。 424 | 私 は 決して 借金 を し な い こと に し て い る 。 425 | 健 は 去年 日本 に い ま し た 。 426 | 彼 は 先月 以来 病気 だ そう で す 。 427 | 来週 受験 でき ま す か 。 428 | 彼女 は 明かり を 消 し た 。 429 | 私 は 時々 彼 に あ い ま す 。 430 | 私 は 彼女 に その パーティー に 行け る か どう か たずね た 。 431 | あまり 食べ 過ぎ る な 。 432 | とても 寒 い で す ね 。 433 | 私 は 仕事 を 終え よ う と 努力 し た 。 434 | 私 は 本 が ほし い 。 435 | どちら に 転 ぶ か 、 微妙 な ところ で す 。 436 | 私 は その 質問 に 答え る こと を 拒否 する 。 437 | ちょっと 待 っ て い て もらえ ま す か 。 438 | 自分 で や っ た こと だ から 仕方 が な い ね 。 439 | どの くらい 日本 に 滞在 する か 。 440 | 私 は この 問題 を 解 く こと が でき る 。 441 | 彼女 は 彼 に 言い返 し た 。 442 | 彼 の 作文 に 誤り が な かっ た 。 443 | 今度 の 旅行 で 私 たち は かなり の 知り合い に な っ た 。 444 | 私 は 彼 と 連絡 を 取 り た い 。 445 | 私 が そこ に 出向 く 必要 が あ り ま す か 。 446 | 私 に は 合わせ る 顔 が な い 。 447 | 彼 は あの 子 に ほれこ ん で い る 。 448 | 男の子 は みんな 野球 を する の が 好き だ 。 449 | 負け る な 。 450 | 私 は 待 ち に 待 ち ま し た 。 451 | 彼女 の 病気 の ため に こ られ な かっ た 。 452 | 私 は 時計 を 現金 で 買 っ た 。 453 | 彼 の 自転 車 は 青 い 。 454 | この ドア は どう に も 閉ま ら な い 。 455 | この 問題 を 全体 と し て 考え る 必要 が あ る 。 456 | 君 は 戦争 に 賛成 か 反対 か 。 457 | たぶん 彼 は その こと を 忘れ た の だ ろ う 。 458 | 彼 は 、 毎朝 長 い 散歩 を する 、 と 言 っ た 。 459 | 私 は その 知らせ に びっくり し た 。 460 | ここ から 東京 まで どの くらい の 距離 で す か 。 461 | す み ま せ ん 、 ご 遠慮 いただけ ま す か 。 462 | 私 は 今朝 成田 空港 に 到着 し た 。 463 | 彼 は 他言 し な い と 約束 し た 。 464 | 年 から 考え る と 彼 は 若 く 見え る 。 465 | 彼 ら は 私 を 一人 で そこ へ いか し た 。 466 | 詳し く 教え て 下さ い 。 467 | あなた は まったく 正し い 。 468 | 仕事 を す ま せ て 、 彼 は 床 に つ い た 。 469 | 私 の 妹 は 毎朝 髪 を 洗 う 。 470 | これ を 下ろ す の てつだ っ て くださ い 。 471 | 私 は 彼 が 嫌い で す 。 472 | それ に 超 し た こと は な い 。 473 | 今 の ところ それ で 間に合 う で しょ う 。 474 | こんな の は 今日 だけ で あ っ て ほし い わ 。 475 | 彼女 に は 医者 で あ る 息子 が い る 。 476 | その 先生 は 答案 を 調べ た 。 477 | 彼 は 運 よ く 列車 に 間に合 っ た 。 478 | 私 は 歩 い て 行 き ま す 。 479 | 私 が 遅刻 し た の で 彼女 は 怒 っ た 。 480 | 私 は それ を 食べ な い ほう が 良 い 。 481 | 喜 ん で 君 を 援助 し て あげ よ う 。 482 | 私 は 昨日 釣り を し に 川 へ 行 っ た 。 483 | 駅 へ 行 っ て 来 た ところ だ 。 484 | 彼 は 箱 に コイン を 何 枚 か 入れ た 。 485 | これ は 本 で す 。 486 | 彼 は テーブル を 一人 占め し て しま っ た 。 487 | 私 は 雨 が 降り 出 す 前 に 学校 に 着 い た 。 488 | その 国 は 戦争 の 準備 を し て い た 。 489 | 私 は この 歌 を よく 知 っ て い る 。 490 | 時 が た て ば どちら が 正し い か わか る で しょ う 。 491 | あなた の 部屋 を 掃除 し ま し た か 。 492 | 彼 は テニス が 上手 で あ る 。 493 | 彼 は 決して 人 の 悪口 を 言 う 人 で は な い 。 494 | 道路 地図 を 下さ い 。 495 | 彼 の 言 う こと は 全然 わか ら な い 。 496 | その 騒音 に 慣れ る の に 長 い 時間 かか っ た 。 497 | そんな こと 言 う べ き で は な い 。 498 | これ ら は 、 なん と 良 い 本 な の だ ろ う 。 499 | 彼 は とても 努力 し た の だ が 、 成功 し な かっ た 。 500 | どこ の ご 出身 で す か 。 501 | -------------------------------------------------------------------------------- /sample_data/sample_valid.tsv: -------------------------------------------------------------------------------- 1 | 彼 は 重要 人物 だ 。 he is a person of importance . 2 | 何 か プレゼント を あげ る ね 。 i will give you a present . 3 | 映画 の 方 が どんな 本 より 面白 い と 思 う 。 i think a movie is more entertaining than any book . 4 | 彼 は その 計画 を あきらめ る 必要 は な い 。 he need not give up the plan . 5 | 私 は たいへん 疲れ て い る 。 i 'm very tired . 6 | 彼女 は 何 本 の ペン を 持 っ て い ま す か 。 how many pens does she have ? 7 | 母子 とも に 健全 で す 。 mother and child are both doing well . 8 | 言いつけどおり に し な けれ ば な ら な い 。 you must do as you are told . 9 | その こと に つ い て は 後 で 全部 教え て あげ る よ 。 i 'll let you know all about it later on . 10 | こんにち は 、 トム 。 hello , tom . 11 | 4 分 の 3 マイル 歩 い た 。 i walked three-fourths of a mile . 12 | ここ が 彼女 の 教え て い る 学校 で す 。 this is the school where she is teaching . 13 | 彼 は 転 ん で 頭 を 床 に ぶつけ た 。 he fell and hit his head on the floor . 14 | 君 を 3 時間 も 待 っ て い た ん だ ぞ 。 i 've been waiting for you for three hours ! 15 | あなた の 報告 書 に は ほとんど 間違い が あ り ま せ ん 。 there are few mistakes in your report . 16 | あれ は 成り行き で し た 。 one thing led to another . 17 | 遅 く と も 8 時 まで に は ここ に 来 て くださ い 。 please be here by eight at the latest . 18 | 彼 ら は 明日 その 問題 に つ い て 討論 する 。 they will debate the question tomorrow . 19 | 父 は よく 私 たち に 他人 を うらやむな と 言 っ て い た 。 father used to tell us not to envy others . 20 | 私 は ここ で 2 時間 待 っ て い る 。 i have been waiting here for two hours . 21 | 我々 は 一 日 に 3 回 食事 を する 。 we take a meal three times a day . 22 | 雪 は 明日 で 1 週間 降 り つづけ た こと に な る 。 by tomorrow , it will have been snowing for a week . 23 | それ を 買 う お 金 が な い 。 i have no money to buy it . 24 | われわれ は よく 注意 し て い た 。 we were all attention . 25 | 暖房 を 消 し ま し た か 。 did you turn off the heater ? 26 | 彼女 の 父 は 先生 で す か 。 is her father a teacher ? 27 | 少し の 間 、 赤ん坊 を 見 て くれ ま せ ん か 。 could you take care of the baby for a while ? 28 | 病 は 気 から 。 care killed a cat . 29 | ご 承知 の よう に 、 彼 は 野球 が 好き だ 。 you see , he is a good baseball player . 30 | みんな に は 優し く 話 し て くださ い 。 speak gently to everyone . 31 | 新し い 髭剃り を 買 い ま し た 。 i bought a new shaver . 32 | お 礼 の 申し上げ 様 も ござ い ま せ ん 。 i cannot thank you enough . 33 | 彼 は 生粋 の アメリカ 人 だ 。 he is an american to the backbone . 34 | 日本 は 、 地震 の 害 を 受け やす い 。 japan is subject to earthquakes . 35 | 私 は アメリカ の 家族 の ところ に い ま し た 。 i stayed with an american family . 36 | 彼 は その 件 に は いくら か 関係 が あ る 。 he has something to do with the matter . 37 | 私 は 新し い バッグ を 買 っ た 。 i bought a new bag . 38 | あなた は フランス 語 で 意思 を 伝え られ ま す か 。 can you make yourself understood in french ? 39 | 君 の 誕生 日 は いつ で す か 。 when is your birthday ? 40 | 私 は あの 人 は 不 親切 だ と 思 う 。 i think him unkind . 41 | 友達 と い う ほど で は な い が 友達 だ 。 he is not a friend , but an acquaintance . 42 | 何 か 飲 み ま す か 。 would you like to drink anything ? 43 | 僕 と 彼女 は 同じ クラス だ 。 she and i are classmates . 44 | 彼 は 演説 する の に 慣れ て い る 。 he is used to making speeches . 45 | 決して 約束 を 破 る な 。 never break your promise . 46 | お 便り を お 待 ち し て い ま す 。 i look forward to hearing from you . 47 | みな さま 、 どうぞ 映画 を お 楽しみ 下さ い 。 we hope you enjoy the movie . 48 | 私 たち の チーム が 試合 に 勝 つ だ ろ う 。 our team is likely to win the game . 49 | 君 は いつ から 家族 と 疎遠 に な っ て い る の か 。 how long have you been alienated from your family ? 50 | 彼 は 背 を 曲げ た 。 he bent his back . 51 | くだ ら な い 話 は もう たくさん だ 。 we have had enough of empty words . 52 | 彼女 は ドア を 蹴 っ た 。 she kicked the door . 53 | 私 は 小船 に 乗 っ て 川 を 渡 っ た 。 i crossed the river by boat . 54 | その 知らせ を 聞 い て 、 私 は 泣 い た 。 when i heard the news , i cried . 55 | ほとんど 話せ な い 。 she can hardly speak . 56 | 彼女 に は 心配 が な い 。 she is free from care . 57 | 彼 は 戦争 で 負傷 し た 。 he was wounded in the war . 58 | それ は 僕 に は 大変 な ショック だっ た 。 it was a great shock to me . 59 | 私 は 非常 に 古 い 切手 を 持 っ て い る 。 i have a very old stamp . 60 | ちょっと 調べ て る こと が あ る から 。 i just wanna nose around a bit . 61 | 彼 は その 光景 を 見 ながら ただ 立 っ て い た 。 he did nothing but stand watching the scene . 62 | 彼 は 健康 の ため に たばこ を 吸 う の を やめ た 。 he stopped smoking for the improvement of his health . 63 | 私 も パーティー に 来る べ き だ 、 と 彼 は つけ加え た 。 he added that i should come to the party , too . 64 | 荷物 は 届 き ま し た か 。 has the shipment arrived yet ? 65 | 今 の 仕事 やめ た い ん だ 。 i want to quit my current job . 66 | 空港 の 近く の ホテル を 希望 し ま す 。 i prefer a hotel by the airport . 67 | ここ が あの 事故 が あ っ た 場所 で す 。 this is the place where the accident was . 68 | どう し て それ を 耳 に する よう に な っ た の か 。 how did you come to hear of it ? 69 | 彼女 は その 光景 に ただ 泣 く ばかり で し た 。 she did nothing but cry at the sight . 70 | 私 の ペン を どう し ま し た か 。 what have you done with my pen ? 71 | 私 は 彼 が 言 っ て い た こと が 理解 でき な い 。 i can 't make out what he was saying . 72 | 私 は 彼女 が 壁 に 絵 を かけ る の を 手伝 っ た 。 i helped her hang the picture on the wall . 73 | きのう 、 あなた の 両親 に 会 い ま し た 。 i met your parents yesterday . 74 | 彼 ら は 食料 が 不足 し て い ま す 。 they are short of food . 75 | 私 は どちら の 帽子 も 好き じゃ な い 。 i don 't like either hat . 76 | 今度 の 日曜 日 に 何 を する か もう 決め ま し た か 。 have you chosen what to do next sunday yet ? 77 | 友人 は 英語 の 試験 で よ い 点 を と っ た 。 my friend got good marks in the english examination . 78 | 少女 は 泣 き ながら 立 っ て い た 。 the girl stood in tears . 79 | 自分 の 分 は 払 い ま す 。 let me pay my share . 80 | この 道 を 行 け ば 駅 に 行け ま す か 。 will this road take me to the station ? 81 | だれ が 年配 の 人々 の 世話 を する べ き な の か 。 who should look after the elderly ? 82 | 電話 が 鳴 っ た 時 、 我々 は 外出 する ところ だっ た 。 we were all set to leave when the phone rang . 83 | 彼 は 一番 を と る だ ろ う 。 he will win the first prize . 84 | 1 から 10 まで 数え なさ い 。 count from one to ten . 85 | 私 に は 自分 の お 金 は 一銭 も な い 。 i do not have a red cent to my name . 86 | 彼 は 手紙 を 火 の 中 に 投げ込 ん だ 。 he threw the letter into the fire . 87 | あなた は 体 を 大事 に し な けれ ば いけ ま せ ん 。 you must take care of yourself . 88 | 私 は その よう な 鳥 は 全く 好き で な い 。 i have no liking for such birds . 89 | 私 達 は この こと を 忘れ がち で あ る 。 we are apt to forget this fact . 90 | 誰 が この 国 を 支配 し て い た か 。 who ruled this country ? 91 | 彼 の 今日 あ る の は 勉強 の おかげ で あ る 。 hard work has made him what he is . 92 | あの 人 達 は なに を 商売 に し て い る の 。 what do they deal in ? 93 | 彼 に は よく あ る こと だ が 、 間違い を 犯 し た 。 he made an error , as he often does . 94 | すべて の こと を 考慮 し て 彼 は その 車 を 買 っ た 。 taking everything into consideration , he bought the car . 95 | その 試験 は 少し も 難し く な かっ た 。 the examination was not difficult in the least . 96 | 心 から 感謝 し ま す 。 i really appreciate it . 97 | 彼 は 7 歳 の 時 に 両親 を 亡く し た 。 he lost his parents at the age of seven . 98 | 彼 ら は 私 たち を 1 日 中 働 か せ た 。 they made us work all day long . 99 | これ は 誰 の 本 で す か 。 whose book is this ? 100 | 来 て くださ って どう も ありがとう 。 thank you for coming . 101 | 誰 も が みんな 口々 に いいあ っ て い る 。 everyone 's saying it . 102 | 私 たち は 心 ゆ く まで パーティー を 楽し ん だ 。 we enjoyed the party to our heart 's content . 103 | あの 少年 は 彼 の 兄 さん で す 。 that boy is his brother . 104 | 私 の 町 に は スーパーマーケット が 2 つ あ り ま す 。 my town has two supermarkets . 105 | 彼女 は 本当 に 美人 だ 。 she is a real beauty . 106 | あの 高 い ビル は 何 で しょ う か 。 what 's that tall building ? 107 | 2 時間 以内 に 戻 り ま す 。 i 'll be back within two hours . 108 | はじめ の うち は 自分 の 誤り が 気 に な り ま し た 。 i was worried about my mistakes at first . 109 | 釣り に 行 く ため に 今朝 は 早 く 起き ま し た 。 i got up early this morning to go fishing . 110 | とても 暑 かっ た の で 私 達 は 泳ぎ に 行 っ た 。 it was so hot that we went swimming . 111 | 一言 も 彼 は 口 に し な かっ た 。 he didn 't say a word . 112 | 私 は あなた の お 母 さん に 会 い た い 。 i want to see your mother . 113 | 私 に 何 か あたたか い 飲み物 を くださ い 。 please give me something hot to drink . 114 | 君 が そう 言 う ん だ から 。 since you say so . 115 | 私 の ことば を 注意 し て 聞 い て くださ い 。 please note my words . 116 | バス が じゃま だっ た 。 there was a bus in the way . 117 | 車 が 木 に ぶつか っ た 。 the car bumped the tree . 118 | 彼女 は 成人 前 に 死 ん だ 。 she died before coming of age . 119 | 私 達 の 学校 は 丘 の 上 に あ る 。 our school is situated on a hill . 120 | 彼 に は 音楽 家 の 素質 が あ る 。 he has something of the musician in him . 121 | 彼 ら は 次 の バス 停 で 降車 し た 。 they got off at the next bus stop . 122 | 彼 ら は 昨日 彼女 の 家 の そば を 通りかか っ た 。 they passed by her house yesterday . 123 | 彼女 は 金 と 幸福 は 同じ と 思 っ て い る 。 she thinks money and happiness are the same . 124 | 父 は とても 忙し い の で 本 を 読 む 暇 が な い 。 my father , who is very busy , has no time to read books . 125 | 日本 政府 は 、 その 問題 に 対処 する こと が でき な い 。 the japanese government can 't cope with the problem . 126 | ちょっと 私 を たすけ て くれ ま せ ん か 。 will you help me for a minute ? 127 | 新し い ワープロ を 今日 、 見せ て くれ な い 。 will you show me your new word processor today ? 128 | お 泊り に な っ て は いかが で す か 。 what do you say to staying ? 129 | 一 つ 間違え る と 君 は 失敗 者 に な る 。 a single mistake , and you are a failure . 130 | 雨 が や ん だ ら 外出 する か も しれ な い 。 i may go out if the rain lets up . 131 | 彼 は 速 く 走れ る 。 he can run fast . 132 | 彼女 は もっと 注意 深 く する 必要 が あ る 。 she needs to be more careful . 133 | あの チーム は つわものぞろい だ 。 that team has nothing but strong players . 134 | あなた は 本 を 読 む 方 が よ い 。 it would be better for you to read more books . 135 | あなた の お 父 さん は どこ に い ま す か 。 where is your father ? 136 | 私 は きのう 歯 が 痛 かっ た 。 i had a toothache yesterday . 137 | 私 は あなた の 手紙 を 昨日 読 み ま し た 。 i read your letter yesterday . 138 | 彼 は 正し く 行動 し た 。 he did right . 139 | 彼 は それ を もう 終え て い る はず だ 。 he should have finished it by now . 140 | 誰 も が その 女の子 を 気 に 入 る の も 当然 だっ た 。 it was natural that everyone should like the girl . 141 | 今 の ところ あなた は 学校 で よく や っ て い る 。 you have been doing well at school so far . 142 | 電話 に 出 て ちょうだい 。 answer the telephone , will you ? 143 | 彼 は アパート に 一人 で 住 ん で い ま す 。 he lives alone in an apartment . 144 | 彼 は 大変 背 が 高 い 。 he is very tall . 145 | 目 が 疲れ て い ま す 。 i have eyestrain . 146 | 船 は 航海 中 で あ っ た 。 the ship was at sea . 147 | 彼 は 道路 を 渡 っ た 。 he crossed the street . 148 | 私 だっ たら 彼 よ り うま く でき た だ ろ う 。 i could have done better than he . 149 | 父 は 大変 疲れ て い る 。 my father is very tired . 150 | 部屋 は 墓場 の よう に 静か だっ た 。 the room was as still as the grave . 151 | 彼 は 自分 の 時間 を 犠牲 に し て 働 い た 。 he worked at the cost of his own time . 152 | 私 は 泳ぎ 方 を 知 っ て い る 。 i know how to swim . 153 | 彼 は 約束 を し たら 必ず それ を 守 る で しょ う 。 he will stick to his promise if he gives it . 154 | 今日 は とても 寒 い で す ね 。 it is very cold today , isn 't it ? 155 | 君 に つ い て いけ な い 。 i can 't keep up with you . 156 | 彼 は 言 わ れ た とおり に 早 く 来 た 。 he came early , as he had been asked to do . 157 | もう 一 度 君 と 話 が し た い 。 i would like to talk with you again . 158 | 我々 は 試合 を 見 て 楽し ん だ 。 we enjoyed watching the game . 159 | 試着 し て も い い で す か 。 i 'd like to try this on . 160 | 今日 出かけ て も 明日 出かけ て も 大差 は な い よ 。 it makes no difference whether you go today or tomorrow . 161 | 彼 の 話 は 要領 を 得 て い た 。 his speech was to the point . 162 | この テレビ 月賦 で 買 っ た 。 i bought this tv on the installment plan . 163 | トニー 君 は そこ に い ま す か 。 is tony there ? 164 | 私 は 明日 の 今ごろ テレビ を 見 て い る だ ろ う 。 i will be watching tv about this time tomorrow . 165 | 彼女 は 明らか に 病気 だ 。 she is evidently sick . 166 | その ネクタイ は 私 の 服 に は 合 わ な い 。 the tie doesn 't go with my dress . 167 | どの バス も 満員 で す 。 every bus is full . 168 | 彼 は 遠く に 明かり を 見 た 。 he saw a light far away . 169 | 平和 へ の 道 。 the road to peace . 170 | この き の こ は 食べ られ な い 。 this mushroom is not good to eat . 171 | 私 は 鳥 で あ れ ば い い の だ が なあ 。 i wish i were a bird . 172 | 男 は 彼 ら に 従 う しか な かっ た 。 all the man could do was obey them . 173 | 私 は 毎週 日 曜日 に 必ず 両親 を 訪れ る 。 i visit my parents every sunday without fail . 174 | 彼 は 毎日 、 6 時 に 起き る こと に し て い る 。 he makes it a rule to get up at six every day . 175 | その 男 は その 家 に 押し入 っ た こと を 認め た 。 the man admitted having broken into the house . 176 | 物 が 二重 に 見え ま す 。 i see double . 177 | この 車 は 過去 10 年間 使用 さ れ て き た 。 this car has been used for the past ten years . 178 | それ を 聞 い て 大変 残念 で す 。 i 'm very sorry to hear that . 179 | いったい それ を どう や っ て 手 に 入れ た の で す か 。 how on earth did you get it ? 180 | 気 を つけ て 。 そこ に 大きな 穴 が あ り ま す 。 watch out ! there 's a big hole there . 181 | 2、3 質問 を し て も よろし い で す か 。 may i ask a few questions ? 182 | あの ビル の 一 階 に あ り ま す 。 it 's on the first floor of that building . 183 | 彼 ら は その 知らせ を 聞 い て 喜 ん だ 。 the news made them happy . 184 | 胸焼け が し ま す 。 i have heartburn . 185 | 私 達 は いつ も 正午 に 昼食 を 食べ る 。 we have lunch at noon every day . 186 | あなた の 学校 を 訪問 する の を 楽しみ に し て い ま す 。 i am looking forward to visiting your school . 187 | 人生 は なん と 不思議 な もの だ ろ う か 。 how strange life is ! 188 | 英語 を 話せ ま す か 。 can you speak english ? 189 | 私 たち は 今日 数学 の 試験 を 受け た 。 we had an examination in mathematics today . 190 | 試験 に 落ち る と もう 1 年 待 つ こと に な る 。 failing the examination means waiting for another year . 191 | 誰 も その 真相 を 知 ら な い よう だ 。 it seems that no one knows the truth . 192 | これ は とても 美味し い 。 this is very good . 193 | 僕 は これ 以上 歩け な い よ 。 i can 't walk any further . 194 | 弟 は 私 と 同じ くらい の 背丈 で す 。 my brother is as tall as i. 195 | 彼 は 出来 る だけ 濡れ な い よう に し た 。 he tried to keep dry as best he could . 196 | 彼 ら は その 少女 を 養女 に し た 。 they adopted the little girl . 197 | さあ 試合 を 始め ま しょ う 。 now let 's begin the game . 198 | あの レコード は この 店 で 買 っ た 。 i bought that record in this store . 199 | 彼女 は 私 に 冷淡 だ 。 she is cold to me . 200 | 息子 が 今日 あ る の は あなた の おかげ で す 。 my son owes what he is to you . 201 | 彼 の 家 を 見つけ る の に 苦労 し た 。 i had a hard time finding his house . 202 | 喫煙 は あなた に よ く な い 。 smoking is bad for you . 203 | 彼女 は 友人 に だま さ れ た 。 she was deceived by a friend . 204 | 私 は 昨日 メアリー に 会 い ま し た 。 i met mary yesterday . 205 | 彼 ら は ロバート を ボブ と 呼 ぶ 。 they call robert '' bob '' . 206 | それ から ニッケル を 取 る よ 。 then i 'd take the nickel out . 207 | 彼 は 多く の 苦難 を 経験 し た 。 he had to go through a lot of hardships . 208 | 私 は 彼女 を 幸福 に し よ う 。 i made her happy . 209 | ちょっと でき な い こと で す 。 it is no easy thing to do . 210 | 私 は ライオン を 見 て 驚 い た 。 i was surprised to see a lion . 211 | 地球 は 惑星 の 1 つ で す 。 the earth is one of the planets . 212 | この 席 まで 案内 し て くれ ま す か 。 could you take me to this seat ? 213 | 他方 、 多く の 人間 が 若 く し て 死 ん で い る 。 on the other hand a lot of people die young . 214 | 私 は 疲れ て い た けど 、 働 い て い た 。 tired as i was , i went on working . 215 | 当時 彼 は 一人 で その 家 に 住 ん で い た 。 in those days , he lived in the house alone . 216 | 彼 は おと と い アメリカ に 向か っ た 。 he left for america the day before yesterday . 217 | 番号 を お 間違い の よう で す が 。 you seem to have the wrong number . 218 | 皆 彼 は い い 人 だ と 言 う 。 everyone says that he 's a good man . 219 | 彼 が 来る まで ここ で 待 ち ま す 。 i will wait here till he comes . 220 | 洗濯 機 の 使 い 方 を 教え て くださ い 。 tell me how to use the washing machine . 221 | 彼 の カメラ の 値段 は 僕 の カメラ の 値段 の 3 倍 だ 。 his camera is three times as expensive as mine . 222 | 彼 の 噂 を 聞 い た こと が あ り ま す か 。 have you ever heard of him ? 223 | もっと 彼女 と 話 す 時間 が あ れ ば い い の に 。 i wish i had more time to talk with her . 224 | 私 に と っ て スケート は 難し い 。 it is difficult for me to skate . 225 | あなた は 京都 に どれ くらい 滞在 し ま す か 。 how long will you stay in kyoto ? 226 | まあまあ 、 そう 怒 ら な い で くださ い な 。 now , please don 't get so angry . 227 | 私 の 部屋 を 覗 か な い で 。 don 't look into my room . 228 | それ は 私 に 関係 の な い こと だ 。 it 's none of my business ! 229 | 私 たち は 以前 パリ に す ん で い た 。 we lived in paris before . 230 | 一雨 き そう で す ね 。 the sky looks threatening . 231 | 入 っ て ま す 。 it 's occupied . 232 | 私 たち は 時々 魚釣り に 行 く 。 we go fishing once in a while . 233 | 彼 に は 養 う べ き 家族 が い る 。 he has a family to support . 234 | 彼女 の 仕事 は 赤ん坊 の 世話 を する こと で す 。 her job is to take care of babies . 235 | 船 は すぐ に 見え な く な っ た 。 the ship was soon out of sight . 236 | 私 たち は 音楽 を 聴 く ため に 話 す の を やめ た 。 we stopped talking so that we could hear the music . 237 | すぐ それ を し な さ い 。 do it at once . 238 | この 仕事 を でき る だけ 早 く す ま せ ま しょ う 。 let 's finish this work as soon as possible . 239 | エジプト は 日本 より 雨 が 少な い 。 they have less rain in egypt than in japan . 240 | 彼 は 一 週間 病気 で す 。 he has been sick for a week . 241 | 今 欲し い の は 熱 い 一杯 の コーヒー で す 。 what i want now is a hot cup of coffee . 242 | そこ は 夏 で も 寒 い 。 it is cold there even in summer . 243 | どこ の 席 が い い で す か 。 what seats do you want ? 244 | 彼 は めった に 働 か な い 。 he hardly ever works . 245 | その 本 は 、 読 む 価値 が あ る 。 it is worthwhile to read the book . 246 | 彼 は よく 泳げ る と 答え た 。 he answered that he could swim well . 247 | そちら の 陽気 は どう で す か 。 how is the weather there ? 248 | 彼 が その 川 を 泳 い で わた る の は 可能 だ 。 it is possible for him to swim across the river . 249 | 私 が 話 し て い る 間 、 静か に し なさ い 。 be quiet while i am speaking . 250 | 彼 は 自分 で 時計 を 修理 し た 。 he repaired his watch by himself . 251 | この 君 の 辞書 を 使 っ て い い かい 。 can i use this dictionary of yours ? 252 | この ホテル は あの ホテル より 良 い 。 this hotel is better than that hotel . 253 | 彼 は とても 気難し い 子 だ 。 he is such a difficult boy . 254 | 彼 の ねらい が 何 だ か わか っ て き た 。 i began to see what he was getting at . 255 | 私 は やっと 授業 に 間に合 っ た 。 i was just in time for class . 256 | そんな に 気取 る 必要 は な い 。 you don 't have to give yourself such airs . 257 | 誰 も この 話 を 信 じ な い だ ろ う から だ 。 that 's because i don 't suppose anybody will believe this story . 258 | あなた は 私 を 知 っ て い ま す か 。 do you know me ? 259 | 私 は 自分 に そんな 事 が でき る かしら と 思 っ た 。 i wondered if i could do such a thing . 260 | 彼 の 名前 を 覚え て い ま す か 。 do you remember his name ? 261 | その 先生 は 私 たち に おもしろ い 話 を し て くれ た 。 the teacher told us a funny story . 262 | 彼女 の 車 は 禁煙 で す よ 。 now remember , you must not smoke in her car . 263 | 私 は 彼 ら と は まったく 関係 が な い 。 i have nothing to do with them . 264 | 何 か 変わ っ た こと は ? what 's new ? 265 | 犬 は 男 の そば に 座 っ た 。 the dog sat down by the man . 266 | 必ず 、 あなた の お 父 さん に よろしく お 伝え 下さ い 。 please be sure to give my best regards to your father . 267 | あの 人 は 口 と 腹 が 反対 だ 。 he says one thing and means another . 268 | この 小説 は 読 む たび ごと に 実 に おもしろ い と 思 う 。 every time i read this novel , i find it very interesting . 269 | 彼 は 遺言 状 も 作 ら ず に 死 ん だ 。 he died without having made a will . 270 | 私 が い る の は 父 の おかげ で す 。 i owe what i am to my father . 271 | 傷つ き た く な かっ た から 。 i never wanna feel more pain . 272 | 私 たち が 部屋 に 入 る と 、 彼 は 立ち上が っ た 。 when we entered the room , he stood up . 273 | 手 を 動か さ な い で 。 keep your hand still . 274 | 私 は 車 の ハンドル を 右 に 切 っ た 。 i turned right . 275 | 予想 以上 に ひど い 天気 だ 。 this bad weather is more than i bargained for . 276 | 犬 が 私 の 手 に 噛み 付 い た 。 the dog bit me in the hand . 277 | これ は あなた の 本 で す か 。 is this your book ? 278 | きっと 彼 は あなた を 信じ る と 思 い ま す よ 。 i am sure of his trusting you . 279 | 彼女 は 私 を 軽蔑 し て い る 。 she has scorn for me . 280 | 学校 は 夏休み に な る 。 school will break for the summer . 281 | ついで に 私 に も コーヒー を 入れ て くださ い 。 while you are about it , please make some coffee for me . 282 | 彼 は 以前 より 今 の 方 が 金回り が よ い 。 he is now better off than before . 283 | あなた は 日光 へ 行 っ た こと が あ り ま す か 。 have you ever been to nikko ? 284 | 誰 も が その 歌 を 知 っ て い た 。 everyone knew the song . 285 | この 家 に は 部屋 が 6 つ あ り ま す 。 this house has six rooms . 286 | ちょっと 散歩 し な い ? wouldn 't you like to get some fresh air ? 287 | 彼 は 私 の 隣 に す ん で い る 。 he lives next to me . 288 | 今 すぐ 出かけ な さ い 。 そう すれ ば バス に 間に合 う よ 。 leave right now and you will be in time for the bus . 289 | ぜんぜん 疲れ て い ま せ ん 。 i 'm not at all tired . 290 | 君 は 計画 を 遣 り 通 さ な けれ ば な ら な い 。 you must go through with your plan . 291 | 約束 の 時間 まで に 必ず ここ へ 来る よう に 。 be sure to come here by the appointed time . 292 | 台所 の 中 に 入 っ て き て は いけ ま せ ん 。 you must not come into the kitchen . 293 | 彼 の 邪魔 を し た 。 we disturbed him . 294 | 日本 は 産業 国 で あ る 。 japan is an industrial country . 295 | 今度 は あなた だけ で する べ き で す 。 this time you should do it by yourself . 296 | いつ も 学校 に 遅れ る の は どう い う 訳 だ 。 how is it that you are always late for school ? 297 | 彼 は すぐ に よ く な る だ ろ う 。 he will get well very soon . 298 | 最寄り の 駅 へ は どう 行 っ たら い い の で す か 。 could you tell me how to get to the nearest station ? 299 | 式典 は 彼 の 話 から 始ま っ た 。 the ceremony began with his speech . 300 | 私 は もう 待 て ま せ ん と ヘンリー は 言 っ た 。 henry said that he couldn 't wait any longer . 301 | その 試合 は 何 時 に 始ま り ま す か 。 what time does the game start ? 302 | 彼女 は 日 ごと に 快方 に 向か っ て い ま す 。 she is getting better day by day . 303 | 雨 が 激し く 窓 に 吹きつけ た 。 the rain was driving against the windows . 304 | 多分 彼女 は ちょっと 怒 っ て い る で しょ う 。 i should say she is a little angry . 305 | 他人 に 対 し て 優越 感 を 持 っ て は いけ な い 。 you should not feel superior to other people . 306 | 私 は 彼女 に 謝 ら な けれ ば な ら な い 。 i must make an apology to her . 307 | ちょっと 寄 っ て か な い ? why don 't you stop by for a little while ? 308 | 政治 の 事 と な る と 私 に は 全然 わか ら な い 。 when it comes to politics , i know nothing . 309 | 今日 は 暖か い から 海 で 泳げ ま す 。 it 's warm today so you can swim in the sea . 310 | 私 は そんな 危険 を 冒 し た く な い 。 i don 't want to run such a risk . 311 | 彼 が ここ に い る と 仮定 し て み よ う 。 let 's suppose that he is here . 312 | この 部屋 は 日当たり が 良 く な い 。 this room doesn 't get much sunshine . 313 | その 赤ん坊 は 泣 い て ばかり い た 。 the baby did nothing but cry . 314 | ビーフ を お 願 い し ま す 。 beef , please . 315 | 大丈夫 、 心配 し な い で 。 come on , it 'll be all right . 316 | 彼 は フランス 人 で す 。 he is french . 317 | しかし 彼 は 英語 を 読 む の は 下手 だ 。 but he is bad at reading english . 318 | どこ に 行 っ たら 助け て もらえ ま す か 。 where can i get some help ? 319 | もう とっく に 学校 へ 出かけ て い る 時間 じゃ な い の 。 it 's high time you left for school , isn 't it ? 320 | テニス を し ま す か 。 do you play tennis ? 321 | 私 の 荷物 が 壊れ て い ま す 。 my suitcase is broken . 322 | 彼 は ドア に かぎ を かけ な い で お い た 。 he left the door unlocked . 323 | 彼 は 今 電話 中 で す 。 he 's now on the phone . 324 | 私 たち は しばらく 休 ん だ 。 we rested for a while . 325 | 先月 は とても 忙し い 月 で し た 。 it was a very busy month last month . 326 | 今 は 食べ る 気 が し な い 。 i don 't feel like eating now . 327 | 彼 は 自分 の 成功 は 努力 の 結果 だ と い っ た 。 he ascribed his success to hard work . 328 | 彼 は 側転 を し ま し た 。 he did a cartwheel . 329 | 君 が こ られ な かっ た こと は 残念 だ 。 it 's a pity that you couldn 't come . 330 | 毎日 三 時間 英語 を 勉強 する こと に し て い る 。 i make it a rule to study english for 3 hours every day . 331 | その 少女 は 背中 を 男 の 方 へ 向け た 。 the girl turned her back to the man . 332 | 私 の 妹 は 有名 だ 。 my sister is famous . 333 | 早 く これ ば よ かっ た の に 。 you should have come earlier . 334 | 乗 る 時間 は どの くらい で す か 。 how long is the ride ? 335 | 彼女 は 電話 に 出 る ため に 立ち上が っ た 。 she stood up to answer the phone . 336 | 嵐 は いつ まで 続 く の だ ろ う か 。 how long will the storm last ? 337 | これ に 保険 を かけ た い の で す が 。 i 'd like to insure this , please . 338 | 私 は そう ひとりごと を 言 っ た 。 i said that to myself . 339 | 彼 ら は パーティー で 楽し く 過ご し た 。 they enjoyed themselves at the party . 340 | 彼 ら は 川 に 橋 を かけ た 。 they built a bridge across the river . 341 | 彼女 は すぐ に 返事 を くれ た 。 she wrote me back soon . 342 | どう も 行 か な い ほう が よさ そう だ 。 i think i 'd better stay here . 343 | 彼 は ほとんど 死 ん だ も 同然 だ 。 he is all but dead . 344 | その 知らせ は 本当 だ と 信 じ られ て い ま す 。 we believed that the news is true . 345 | じゃま た 後 から 来 ま す 。 then i 'll come again later . 346 | この 新聞 は 購読 者 が 多 い 。 this paper has a large circulation . 347 | 彼 は だれ で も 喜 ば せ たが る 。 he is anxious to please everybody . 348 | この 川 で 泳 ぐ の は 、 安全 で す か 。 is it safe to swim in this river ? 349 | 彼 は 怒り を 見せ ま い と し た 。 he tried to hold back his anger . 350 | 彼 ら の うち 2人 が おぼれ た 。 two of them were drowned . 351 | 彼 の 年老い た 猫 は まだ 生き て い る 。 his old cat is still alive . 352 | 6 と 4 を 足 す と 10 に な る 。 add six and four and you have ten . 353 | その 小説 を 読 む こと は それ だけ の 価値 が あ る 。 it is worthwhile reading the novel . 354 | 最初 に 着 い た 者 が 最初 に 接待 を 受け る 。 first come , first served . 355 | 僕 は この 仕事 を 続け る こと に し た 。 i have decided to carry on the work . 356 | 私 は 初めて スキー を し た 。 i skied for the first time . 357 | 結婚 する つもり なん か これ っぽっち も あ り ま せ ん 。 marriage is the last thing on my mind . 358 | 彼 は いたずら 好き だ 。 he likes to be mischievous . 359 | 生 の 魚 は 私 の 口 に は 合 い ま せ ん 。 raw fish is not to my taste . 360 | 私 の 知 る 限り で は とても 遠 い 。 it is very far as far as i know . 361 | この 小説 を 読 ん で 楽し かっ た 。 i have enjoyed reading this novel . 362 | 日 は 短 く 仕事 は 多 い 。 the day is short and there 's a lot of work . 363 | 少し 待 っ て いただけ ま せ ん か 。 would you mind waiting a moment ? 364 | 私 は 後 で 君 たち に 合流 する 。 i 'll join you later . 365 | 私 は その 事実 を 全く 知 ら な かっ た 。 i was quite ignorant of the fact . 366 | 金 は 少し あ る 。 i have a little money . 367 | 私 たち は 川 で 泳 ぐ 事 を 楽し ん だ 。 we enjoyed swimming in the river . 368 | 今朝 駅 で 彼 を 見かけ ま し た か 。 did you see him at the station this morning ? 369 | この 町 は 気 に 入 り ま し た か 。 how do you like this town ? 370 | 母 は とても 具合 が 悪 い 。 my mother is seriously ill . 371 | あなた の 学校 に は 何 人 の 生徒 が い ま す か 。 how many students are there in your school ? 372 | もう 失礼 さ せ て もら っ て も よろし い で しょ う か 。 may i be excused ? 373 | 私 の 自転 車 は 昨日 盗 ま れ た 。 my bike was stolen yesterday . 374 | この 計画 の 主な 目的 は なん で す か 。 what is the main purpose of this plan ? 375 | 私 は 古 い ランプ を 買 っ た 。 i bought an old lamp . 376 | 彼 は もう 寝 て しま っ た 。 he has already gone to bed . 377 | 彼 は 私 達 に 騒 が な い よう に 頼 ん だ 。 he asked us not to make any noise . 378 | 君 の 読 み たい どんな 本 で も 読 ん で よ い 。 you may read whichever book you like . 379 | 私 は まだ その はなし は 聞 い て な い 。 i have still to hear that story . 380 | あの 戦争 が 起こ っ た 時 彼 は 英国 に い た 。 he was living in england when the war broke out . 381 | その 事実 を 知 っ て い る の は 彼 ら だけ だ 。 they are the only people who know the fact . 382 | たった 今 その 事故 を 見 た ばかり だ 。 i only just saw the accident . 383 | 彼女 は あなた の お 母 さん で す か 。 is she your mother ? 384 | その 列車 は 速 く 走 っ て い る 。 the train is running fast . 385 | われわれ は きっと 試合 に 勝て る と 考え て い た 。 we were certain of winning the game . 386 | いつ か 外国 へ 行 き た い 。 i want to go abroad one day . 387 | 問題 は 君 が 若 すぎ る と 言 う 事 だ 。 the trouble is that you are too young . 388 | 彼 の 夢 が つい に 実現 し た 。 his dream has come true at last . 389 | 私 は 同じ 年齢 で す 。 i am the same age . 390 | 彼 が 試験 に 失敗 する なんて 私 は 予想 も し な かっ た 。 never did i expect that he would fail the examination . 391 | 彼 が 成功 する の は 当然 だ と 思 っ て い た 。 i took it for granted that he would succeed . 392 | ご 署名 を お 願 い し ま す 。 please sign your name here . 393 | あなた は 食事 を 作 る こと が 出来 ま す か 。 can you cook a meal ? 394 | せめて あと 十分 待 っ て くれ ま せ ん か 。 can 't you wait just ten more minutes ? 395 | 子供 たち は 遊び 回 っ て い た 。 the children were playing about . 396 | それ は 理屈 に 合 わ な い 。 it is contrary to reason . 397 | 私 は その 間 ずっと ここ に い た 。 i was here all the time . 398 | それ は 私 に は 関係 な い 。 it makes no difference to me . 399 | ちょうど その 時 電話 が 鳴 る の を 聞 い た 。 just then , i heard the telephone ring . 400 | 庭 に あなた の ネコ が 見え ま す 。 i see your cat in the garden . 401 | 君 の 言 う こと に は 多く の 真理 が あ る 。 there is much truth in what you say . 402 | 彼女 は 非常 に 忙し い 。 she is as busy as a bee . 403 | ニューヨーク は 訪れ る 価値 が あ る 。 new york is worth visiting . 404 | 何 新聞 を と っ て い ま す か 。 what newspaper do you take ? 405 | ほら 、 ジェーン が 来る 。 彼女 を 知 っ て い る か 。 here comes jane . do you know her ? 406 | この 都市 に は 大きな テレビ 局 が あ る 。 this city has a big tv station . 407 | 彼 の 話 は おかし い 。 his story sounds strange . 408 | 夜 の 間 に きっと 雨 が 降 っ た の だ ろ う 。 it must have rained during the night . 409 | 成功 の 望み は な い 。 there is no hope of success . 410 | 私 は 大 家族 を 養 わ な けれ ば な ら な い 。 i have to support a large family . 411 | 私 は 行 か ず に 留ま っ た 。 i didn 't go but stayed . 412 | 彼 は でき る だけ 速 く 走 っ た 。 he ran as fast as he could . 413 | 机 の 上 に あ る その 写真 を 見 な さ い 。 look at that picture on the desk . 414 | 明日 の 晩 まで に 集ま ろ う 。 let 's get together again tomorrow evening . 415 | この 部屋 は 少し も 暖か く な い 。 this room is anything but warm . 416 | 中 に 入れ て よ 。 let me in . 417 | あなた の 話 を 続け な さ い 。 それ は とても 面白 い 。 go on with your story . that is so interesting ! 418 | ジム は 鍵 を 回 し た 。 jim turned the key in the lock . 419 | ほら 彼女 が い ま す よ 。 here she is ! 420 | 私 が ほし い の は 金 で は な く 時間 だ 。 it is not money but time that i want . 421 | 彼 の 話 で 私 たち は 何 時間 も 楽し ん だ 。 his stories entertained us for hours . 422 | 楽し い 旅 を 。 enjoy your trip . 423 | それ は 秘密 に し て おけ 。 keep it quiet . 424 | あなた の 援助 に 感謝 し ま す 。 i 'd appreciate your help . 425 | 太郎 は 一生 懸命 勉強 し て い る 。 taro is studying hard . 426 | この 本 は 子供 で も 読め る ほど やさし い 。 this book is easy enough for children to read . 427 | 何 を 置 き 忘れ て き た の で す か 。 what was it i left behind ? 428 | 今 晩 暇 か な ? are you free tonight ? 429 | しかし 読 む 価値 の あ る 物 は 少し しか な い 。 but few of them are worth reading . 430 | 私 は 勉強 に 疲れ た 。 i was tired from studying . 431 | 彼 は 急 に 立ち止ま っ た 。 he stopped short . 432 | 空港 まで は いくら かか り ま す か 。 how much will it cost to get to the airport ? 433 | 私 が この ケース を あなた の 所 まで 運 び ま す 。 i 'll carry this case to your place . 434 | 彼 は 私 の 妹 と 婚約 し て い る 。 he is engaged to my sister . 435 | わたし は 文通 する 友人 が 欲し い 。 i should like to have a friend to correspond with . 436 | ひど い 頭痛 が し ま す 。 i have a bad headache . 437 | この 会社 の 社長 は 誰 で す か 。 who is the boss of this company ? 438 | 私 は 帽子 に ブラシ を かけ た 。 i gave my hat a brush . 439 | もう 3 ページ 残 っ て い る 。 i have three more pages to go . 440 | これ は 私 が 失 く し た 腕 時計 だ 。 this is the watch that i 'd lost . 441 | それ 以上 は お 役 に 立て ま せ ん 。 beyond that i cannot help you . 442 | 私 たち が 彼 の 意見 に 賛同 する の は 簡単 な こと だ 。 it is easy for us to agree with his opinion . 443 | 戸 を 開け て 犬 を 入れ て や り なさ い 。 open the door and let in the dog . 444 | 私 は もう 朝食 を 済ま せ た 。 i have already had my breakfast . 445 | 賃上げ を 要求 し たら どう で す か 。 why don 't you ask for a pay raise ? 446 | 君 は いくら お 金 が ほし い の で す か 。 how much money do you want ? 447 | 宿泊 し た い の で す が 。 i 'd like to stay at your hotel . 448 | 彼女 は 私 の 子供 達 の 世話 を し て くれ る 。 she takes care of my children . 449 | あなた に この 本 を 読 ん で もら い た い 。 i 'd like you to read this book . 450 | 学校 まで は 歩 い て ほんの 5 分 で す 。 the school is only a five-minute walk . 451 | 彼女 は 親切 に も 私 を 家 まで 迎え に 来 て くれ た 。 she had the kindness to pick me up at my house . 452 | いつ の ま に か 夏 も 過ぎ て しま っ た 。 summer has gone all too soon . 453 | 彼女 は 人前 で 話 し たが ら な い 。 she doesn 't like to speak in public . 454 | ここ で テレビ を 見 な さ い 。 watch tv here . 455 | その 犬 は 空腹 に 違い な い 。 the dog must be hungry . 456 | その 仕事 は 3 時 まで に 終え な けれ ば な ら な い 。 the job must be finished by 3 p.m. 457 | 彼 は 幸福 な 人生 を 送 り ま し た 。 he lived a happy life . 458 | 火 は 消え た 。 the fire went out . 459 | ここ に しばらく 座 っ て 景色 を 見 よ う 。 let 's sit here for a while and look at the view . 460 | あなた は 泳 ぐ 事 が 出来 ま す か 。 are you able to swim ? 461 | 三 日間 晴れ が 続 い た 。 the weather stayed fine for three days . 462 | 彼 は アメリカ 人 で は な い 。 he is not an american . 463 | 私 は これ ら の 人々 を 助け な けれ ば な ら な い 。 i must help these people . 464 | 木 を 見 て 森 を 見 ず 。 you can 't see the forest for the trees . 465 | 言葉 に する こと さえ 虚し い 。 not worth speaking of . 466 | 彼 が そんな こと を 言 う なんて ! that he should say such a thing ! 467 | その 学校 の レベル は 高 い 。 the level of the school is high . 468 | なるべく 早 く 診察 を 受け た い の で す が 。 i 'd like to come to see the doctor as soon as possible . 469 | 火 が 消え て しま っ て 、 この 部屋 は 寒 い 。 the fire has gone out and this room is cold . 470 | 彼女 は 僕 の 目 を 引 い た 。 she caught my eye . 471 | 家 の 庭 に 花 は ほとんど 見 られ ま せ ん 。 there are scarcely any flowers in our garden . 472 | 私 たち は 映画 に 行 く ところ で す 。 we 're going to the movies . 473 | 仕事 で 大阪 まで 行 っ て き た 。 i 've been to osaka on business . 474 | それ は あまり に も 悲し い 。 that 's really sad . 475 | 彼 は 突然 部屋 に 入 っ て き た 。 he burst into the room . 476 | 鳥 が 木 の 上 を 飛 ん で い る 。 birds are flying above the trees . 477 | あと 10 分 で 手 が 空 く 。 i will be free in ten minutes . 478 | そんな こと が 本当 で あ る はず が な い 。 that cannot be true . 479 | 私 は もう 手紙 を 書 い て しま い ま し た 。 i have already written a letter . 480 | 私 の 姉 は 毎週 、 髪 を 整え て もら う 。 my sister has her hair done each week . 481 | 上司 は 私 を 先週 の 日曜 日 に 働 か せ た 。 my boss made me work last sunday . 482 | ガス の 火 を 大き く し て くださ い 。 please turn up the gas . 483 | 私 は 、 城 が 好き で す 。 i like castles . 484 | 付 い て 行 っ て も い い で す か 。 may i go with you ? 485 | そんな に 速 く 走 る なんて でき ま せ ん 。 running so fast is impossible for me . 486 | 彼女 は 愛 を 切望 し て い た 。 she was greedy for love . 487 | 一生 懸命 や れ ば 成功 する 。 if he tries hard , he will succeed . 488 | 彼 は 上 を む い て 空 を 見 て い た 。 he was looking upward to the sky . 489 | 我々 は 彼女 の 名 を き い た こと さえ な かっ た 。 we hadn 't so much as heard of her name . 490 | あなた は 私 より も 背 が 高 い 。 you are taller than i. 491 | 彼 は 時々 電話 を くれ ま す 。 he gives me a phone call every now and then . 492 | その 建物 は いつ 壊れ る か も しれ な い 。 the building may crash at any time . 493 | 具合 が 悪 く な っ たら この 薬 を 飲 み な さ い 。 take this medicine in case you get sick . 494 | 彼女 は 30 歳 を 越え て い る よう だ 。 it seems she is more than thirty years old . 495 | その 事故 は 彼 の 不 注意 から 生まれ た 。 the accident resulted from his carelessness . 496 | あの 人 達 に は 何 の 心配 事 も 不安 も な い 。 they are free from care and anxiety . 497 | 君 、 わか っ て な い ね 。 you don 't understand . 498 | 人 の 仕事 の 失敗 を みつけ る こと は 簡単 で す 。 it is easy to find fault with the work of others . 499 | 東京 は 明日 晴れ る で しょ う か 。 will it be fair in tokyo tomorrow ? 500 | 午後 に 面接 を 行 い ま す 。 we 'll give an interview in the afternoon . 501 | -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | import argparse 4 | import math 5 | import os 6 | import dill 7 | 8 | from collections import OrderedDict 9 | 10 | from tqdm import tqdm 11 | 12 | from torchtext import data 13 | from torchtext import datasets 14 | from torchtext.vocab import Vectors 15 | 16 | import torch 17 | import torch.nn as nn 18 | import torch.optim as optim 19 | 20 | from options import train_opts 21 | from options import model_opts 22 | from model import Seq2seqAttn 23 | 24 | 25 | class Trainer(object): 26 | def __init__( 27 | self, model, criterion, optimizer, scheduler, clip): 28 | self.model = model 29 | self.criterion = criterion 30 | self.optimizer = optimizer 31 | self.scheduler = scheduler 32 | self.clip = clip 33 | self.n_updates = 0 34 | 35 | def get_lr(self): 36 | return self.optimizer.param_groups[0]['lr'] 37 | 38 | def step(self, samples, tf_ratio): 39 | self.optimizer.zero_grad() 40 | bsz = samples.src.size(1) 41 | outs = self.model(samples.src, samples.tgt, tf_ratio) 42 | loss = self.criterion(outs.view(-1, outs.size(2)), samples.tgt.view(-1)) 43 | 44 | if self.model.training: 45 | loss.backward() 46 | nn.utils.clip_grad_norm_(self.model.parameters(), self.clip) 47 | self.optimizer.step() 48 | self.n_updates += 1 49 | return loss 50 | 51 | 52 | def save_model(save_vars, filename): 53 | model_path = os.path.join(args.savedir, filename) 54 | torch.save(save_vars, model_path) 55 | 56 | 57 | def save_vocab(savedir, fields): 58 | name, field = fields 59 | save_path = os.path.join(savedir, f"{name}_vocab.txt") 60 | with open(save_path, 'w') as fout: 61 | for w in field.vocab.itos: 62 | fout.write(w + '\n') 63 | 64 | 65 | def save_field(savedir, fields): 66 | name, field = fields 67 | save_path = os.path.join(savedir, f"{name}.field") 68 | with open(save_path, 'wb') as fout: 69 | dill.dump(field, fout) 70 | 71 | 72 | def main(args): 73 | device = torch.device('cuda' if args.gpu else 'cpu') 74 | 75 | # load data and construct vocabulary dictionary 76 | SRC = data.Field(lower=True) 77 | TGT = data.Field(lower=True, eos_token='') 78 | fields = [('src', SRC), ('tgt', TGT)] 79 | 80 | train_data = data.TabularDataset( 81 | path=args.train, 82 | format='tsv', 83 | fields=fields, 84 | ) 85 | 86 | valid_data = data.TabularDataset( 87 | path=args.valid, 88 | format='tsv', 89 | fields=fields, 90 | ) 91 | 92 | SRC.build_vocab(train_data, min_freq=args.src_min_freq) 93 | TGT.build_vocab(train_data, min_freq=args.tgt_min_freq) 94 | 95 | if not os.path.exists(args.savedir): 96 | os.mkdir(args.savedir) 97 | 98 | # save field and vocabulary 99 | for field in fields: 100 | save_field(args.savedir, field) 101 | save_vocab(args.savedir, field) 102 | 103 | # set iterator 104 | train_iter, valid_iter = data.BucketIterator.splits( 105 | (train_data, valid_data), 106 | batch_size=args.batch_size, 107 | sort_within_batch=True, 108 | sort_key= lambda x: len(x.src), 109 | repeat=False, 110 | device=device 111 | ) 112 | 113 | model = Seq2seqAttn(args, fields, device).to(device) 114 | print(model) 115 | print('') 116 | 117 | criterion = nn.CrossEntropyLoss(ignore_index=TGT.vocab.stoi['']) 118 | optimizer = optim.SGD(model.parameters(), lr=args.lr) 119 | scheduler = optim.lr_scheduler.ReduceLROnPlateau(optimizer, mode='min') 120 | trainer = Trainer(model, criterion, optimizer, scheduler, args.clip) 121 | 122 | epoch = 1 123 | max_epoch = args.max_epoch or math.inf 124 | max_update = args.max_update or math.inf 125 | best_loss = math.inf 126 | 127 | while epoch < max_epoch and trainer.n_updates < max_update \ 128 | and args.min_lr < trainer.get_lr(): 129 | 130 | # training 131 | with tqdm(train_iter, dynamic_ncols=True) as pbar: 132 | train_loss = 0.0 133 | trainer.model.train() 134 | for samples in pbar: 135 | bsz = samples.src.size(1) 136 | loss = trainer.step(samples, args.tf_ratio) 137 | train_loss += loss.item() 138 | 139 | # setting of progressbar 140 | pbar.set_description(f"epoch {str(epoch).zfill(3)}") 141 | progress_state = OrderedDict( 142 | loss=loss.item(), 143 | ppl=math.exp(loss.item()), 144 | bsz=len(samples), 145 | lr=trainer.get_lr(), 146 | clip=args.clip, 147 | num_updates=trainer.n_updates) 148 | pbar.set_postfix(progress_state) 149 | train_loss /= len(train_iter) 150 | 151 | print(f"| epoch {str(epoch).zfill(3)} | train ", end="") 152 | print(f"| loss {train_loss:.{4}} ", end="") 153 | print(f"| ppl {math.exp(train_loss):.{4}} ", end="") 154 | print(f"| lr {trainer.get_lr():.1e} ", end="") 155 | print(f"| clip {args.clip} ", end="") 156 | print(f"| num_updates {trainer.n_updates} |") 157 | 158 | # validation 159 | valid_loss = 0.0 160 | trainer.model.eval() 161 | for samples in valid_iter: 162 | bsz = samples.src.size(1) 163 | loss = trainer.step(samples, tf_ratio=0.0) 164 | valid_loss += loss.item() 165 | 166 | valid_loss /= len(valid_iter) 167 | 168 | print(f"| epoch {str(epoch).zfill(3)} | valid ", end="") 169 | print(f"| loss {valid_loss:.{4}} ", end="") 170 | print(f"| ppl {math.exp(valid_loss):.{4}} ", end="") 171 | print(f"| lr {trainer.get_lr():.1e} ", end="") 172 | print(f"| clip {args.clip} ", end="") 173 | print(f"| num_updates {trainer.n_updates} |") 174 | 175 | # saving model 176 | save_vars = {"train_args": args, 177 | "state_dict": model.state_dict()} 178 | 179 | if valid_loss < best_loss: 180 | best_loss = valid_loss 181 | save_model(save_vars, 'checkpoint_best.pt') 182 | save_model(save_vars, "checkpoint_last.pt") 183 | 184 | # update 185 | trainer.scheduler.step(valid_loss) 186 | epoch += 1 187 | 188 | 189 | if __name__ == '__main__': 190 | parser = argparse.ArgumentParser('') 191 | train_opts(parser) 192 | model_opts(parser) 193 | args = parser.parse_args() 194 | main(args) 195 | 196 | -------------------------------------------------------------------------------- /translate.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | import argparse 4 | import os 5 | import dill 6 | 7 | import torch 8 | from torchtext import data 9 | 10 | from options import translate_opts 11 | from model import Seq2seqAttn 12 | 13 | 14 | def load_field(path): 15 | with open(path, 'rb') as f: 16 | return dill.load(f) 17 | 18 | 19 | def id2w(pred, field): 20 | sentence = [field.vocab.itos[i] for i in pred] 21 | if '' in sentence: 22 | return ' '.join(sentence[:sentence.index('')]) 23 | return ' '.join(sentence) 24 | 25 | 26 | def main(args): 27 | device = torch.device('cuda' if args.gpu else 'cpu') 28 | 29 | load_vars = torch.load(args.model) 30 | train_args = load_vars['train_args'] 31 | model_params = load_vars['state_dict'] 32 | 33 | dirname = os.path.dirname(args.model) 34 | SRC = load_field(os.path.join(dirname, 'src.field')) 35 | TGT = load_field(os.path.join(dirname, 'tgt.field')) 36 | fields = [('src', SRC), ('tgt', TGT)] 37 | 38 | with open(args.input, 'r') as f: 39 | examples = [data.Example.fromlist([line], [('src', SRC)]) for line in f] 40 | 41 | test_data = data.Dataset(examples, [('src', SRC)]) 42 | test_iter = data.Iterator(test_data, batch_size=args.batch_size, 43 | train=False, shuffle=False, sort=False, device=device) 44 | 45 | model = Seq2seqAttn(train_args, fields, device).to(device) 46 | model.load_state_dict(model_params) 47 | 48 | model.eval() 49 | for samples in test_iter: 50 | preds = model(samples.src, tgts=None, maxlen=args.maxlen, tf_ratio=0.0) 51 | preds = preds.max(2)[1].transpose(1, 0) 52 | outs = [id2w(pred, TGT) for pred in preds] 53 | print('\n'.join(outs)) 54 | 55 | 56 | if __name__ == '__main__': 57 | parser = argparse.ArgumentParser() 58 | translate_opts(parser) 59 | args = parser.parse_args() 60 | main(args) 61 | --------------------------------------------------------------------------------