Created
May 14, 2020 03:43
-
-
Save ncaq/a9926d187e4579870e2ee164b578e0e3 to your computer and use it in GitHub Desktop.
辞書ファイルから読みがなが短いものを除去
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#use "topfind" | |
#require "camomile" | |
open CamomileLibrary | |
let print_filter_word () = | |
let rec print_filter_word_sub () = | |
let line = read_line () in | |
let yomi = List.hd (String.split_on_char '\t' line) in | |
if 1 < UTF8.length yomi then print_endline line else (); | |
print_filter_word_sub () in | |
try print_filter_word_sub () with End_of_file -> () | |
let _ = print_filter_word () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment