1

cleanup, fix "minimally invasive surgery"

This commit is contained in:
Alex Yatskov 2018-02-17 12:10:34 -08:00
parent 78c48a0a55
commit 5e2ad1b836
2 changed files with 11 additions and 6 deletions

View File

@ -144,12 +144,12 @@ func epwingExportDb(inputPath, outputPath, language, title string, stride int, p
"明鏡国語辞典": makeMeikyouExtractor(),
"故事ことわざの辞典": makeKotowazaExtractor(),
"研究社 新和英大辞典 第5版": makeWadaiExtractor(),
"広辞苑第六版": makeKoujienExtractor(),
"付属資料": makeKoujienExtractor(),
"学研国語大辞典": makeGakkenExtractor(),
"古語辞典": makeGakkenExtractor(),
"故事ことわざ辞典": makeGakkenExtractor(),
"学研漢和大字典": makeGakkenExtractor(),
"広辞苑第六版": makeKoujienExtractor(),
"付属資料": makeKoujienExtractor(),
"学研国語大辞典": makeGakkenExtractor(),
"古語辞典": makeGakkenExtractor(),
"故事ことわざ辞典": makeGakkenExtractor(),
"学研漢和大字典": makeGakkenExtractor(),
}
var (

View File

@ -86,6 +86,11 @@ func (e *wadaiExtractor) extractTerms(entry epwingEntry, sequence int) []dbTerm
reading = ""
}
expression = strings.TrimSpace(expression)
if len(expression) == 0 {
continue
}
term := dbTerm{
Expression: expression,
Reading: reading,