Skip to content

Instantly share code, notes, and snippets.

@ncaq
Created May 14, 2020 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ncaq/a9926d187e4579870e2ee164b578e0e3 to your computer and use it in GitHub Desktop.
Save ncaq/a9926d187e4579870e2ee164b578e0e3 to your computer and use it in GitHub Desktop.
辞書ファイルから読みがなが短いものを除去
#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