Permalink
Browse files

add-morphemes no longer needed \o/

  • Loading branch information...
1 parent 5f71242 commit 9971fb2ad4171b317562c214217680f9f7acf101 @sartak committed Dec 17, 2011
Showing with 0 additions and 25 deletions.
  1. +0 −25 bin/add-morphemes
View
@@ -1,25 +0,0 @@
-#!/usr/bin/env perl
-use 5.14.0;
-use warnings;
-use utf8::all;
-use Anki::Corpus;
-
-my ($i, $e) = (0, 0);
-
-my $corpus = Anki::Corpus->new;
-my $morphology = $corpus->morphology;
-
-$corpus->each_sentence('LEFT JOIN morphemes ON (morphemes.sentence = sentences.rowid) WHERE morphemes.rowid IS NULL;', sub {
- my $sentence = shift;
- say 2**$e++ if ++$i == 2**$e;
-
- $corpus->dbh->begin_work;
- $sentence->insert_standalone_morphemes;
-
- #$corpus->dbh->do("UPDATE sentences SET morphemes=? WHERE rowid=?", {},
- # $corpus->morpheme_string_for($sentence->japanese),
- # $sentence->id,
- #);
-
- $corpus->dbh->commit;
-});

0 comments on commit 9971fb2

Please sign in to comment.