| line |
true |
false |
branch |
|
78
|
1 |
0 |
unless defined $self->{'_debugLog'} |
|
79
|
1 |
0 |
unless defined $self->{'_writeLog'} |
|
80
|
1 |
0 |
unless defined $self->{'_trainFilePath'} |
|
81
|
1 |
0 |
unless defined $self->{'_outputFilePath'} |
|
82
|
1 |
0 |
unless defined $self->{'_minCount'} |
|
83
|
1 |
0 |
unless defined $self->{'_threshold'} |
|
84
|
1 |
0 |
unless defined $self->{'_setW2PDebug'} |
|
85
|
1 |
0 |
unless defined $self->{'_workingDir'} |
|
86
|
1 |
0 |
unless defined $self->{'_overwriteOldFile'} |
|
92
|
0 |
11 |
if -e "$dir/External/Word2vec" |
|
93
|
0 |
11 |
if -e "$dir/../External/Word2vec" |
|
94
|
0 |
11 |
if -e "$dir/../../External/Word2vec" |
|
95
|
3 |
8 |
if -e "$dir/Word2vec/External/Word2vec" |
|
99
|
0 |
1 |
if ($self->{'_writeLog'}) |
|
108
|
1 |
0 |
if defined $self->{'_word2PhraseExeDir'} |
|
109
|
1 |
0 |
if defined $self->{'_word2PhraseExeDir'} |
|
124
|
0 |
1 |
if $self->{'_fileHandle'} |
|
138
|
0 |
2 |
if $self->GetOSType eq 'MSWin32' |
|
141
|
2 |
0 |
if defined $trainFilePath |
|
142
|
0 |
2 |
unless defined $trainFilePath |
|
145
|
2 |
0 |
if defined $outputFilePath |
|
146
|
0 |
2 |
unless defined $outputFilePath |
|
149
|
0 |
2 |
if defined $overwrite |
|
150
|
2 |
0 |
unless defined $overwrite |
|
153
|
2 |
0 |
unless -e $executableFileDir |
|
154
|
2 |
0 |
unless -e $executableFileDir |
|
155
|
0 |
0 |
unless -e "$trainFilePath" |
|
156
|
0 |
0 |
if -z "$trainFilePath" |
|
157
|
0 |
0 |
if not -e "$trainFilePath" or -z "$trainFilePath" |
|
160
|
0 |
0 |
if -e "$outputFilePath" and $overwrite == 0 |
|
161
|
0 |
0 |
if -e "$outputFilePath" and $overwrite == 0 |
|
162
|
0 |
0 |
if -e "$outputFilePath" and $overwrite == 0 |
|
165
|
0 |
0 |
if defined $minCount |
|
166
|
0 |
0 |
unless defined $minCount |
|
168
|
0 |
0 |
if defined $threshold |
|
169
|
0 |
0 |
unless defined $threshold |
|
171
|
0 |
0 |
if defined $debug |
|
172
|
0 |
0 |
unless defined $debug |
|
191
|
0 |
0 |
if $result == 65280 |
|
193
|
0 |
0 |
unless -e "$outputFilePath" |
|
194
|
0 |
0 |
if -z "$outputFilePath" |
|
195
|
0 |
0 |
if not -e "$outputFilePath" or -z "$outputFilePath" |
|
197
|
0 |
0 |
if $result == 0 and -e "$outputFilePath" |
|
198
|
0 |
0 |
if $result != 0 |
|
208
|
0 |
1 |
unless defined $trainingStr |
|
209
|
0 |
1 |
unless defined $trainingStr |
|
211
|
0 |
1 |
if $trainingStr eq '' |
|
212
|
0 |
1 |
if $trainingStr eq '' |
|
220
|
0 |
1 |
unless open my $fileHandle, '>:encoding(utf8)', "$tempFilePath" |
|
222
|
0 |
1 |
if $result == -1 |
|
223
|
0 |
1 |
if $result == -1 |
|
226
|
1 |
0 |
if defined $fileHandle |
|
238
|
0 |
1 |
if $result == 0 |
|
239
|
1 |
0 |
if $result == -1 and $self->GetWriteLog == 0 |
|
240
|
0 |
1 |
if $result == -1 and $self->GetWriteLog == 1 |
|
259
|
0 |
14 |
unless defined $self->{'_debugLog'} |
|
266
|
0 |
16 |
unless defined $self->{'_writeLog'} |
|
273
|
1 |
0 |
unless defined $self->{'_fileHandle'} |
|
280
|
0 |
2 |
unless defined $self->{'_trainFilePath'} |
|
287
|
0 |
2 |
unless defined $self->{'_outputFilePath'} |
|
294
|
0 |
2 |
unless defined $self->{'_minCount'} |
|
301
|
0 |
2 |
unless defined $self->{'_threshold'} |
|
308
|
0 |
2 |
unless defined $self->{'_setW2PDebug'} |
|
315
|
0 |
5 |
unless defined $self->{'_workingDir'} |
|
322
|
0 |
5 |
unless defined $self->{'_word2PhraseExeDir'} |
|
329
|
0 |
4 |
unless defined $self->{'_overwriteOldFile'} |
|
341
|
2 |
0 |
if defined $temp |
|
347
|
2 |
0 |
if defined $temp |
|
353
|
2 |
0 |
if defined $temp |
|
359
|
2 |
0 |
if defined $temp |
|
365
|
1 |
0 |
if defined $temp |
|
371
|
2 |
0 |
if defined $dir |
|
377
|
2 |
0 |
if defined $dir |
|
383
|
2 |
0 |
if defined $dir |
|
396
|
0 |
0 |
if ($hour < 10) |
|
401
|
0 |
0 |
if ($min < 10) |
|
406
|
0 |
0 |
if ($sec < 10) |
|
431
|
0 |
13 |
unless defined $string |
|
432
|
13 |
0 |
unless defined $printNewLine |
|
435
|
0 |
13 |
if ($self->GetDebugLog) |
|
437
|
0 |
0 |
if (ref $self ne 'Word2vec::Word2phrase') |
|
443
|
0 |
0 |
unless defined $string |
|
445
|
0 |
0 |
if $printNewLine != 0 |
|
448
|
0 |
13 |
if ($self->GetWriteLog) |
|
450
|
0 |
0 |
if (ref $self ne 'Word2vec::Word2phrase') |
|
458
|
0 |
0 |
if (defined $fileHandle) |
|
461
|
0 |
0 |
if $printNewLine != 0 |