From 5b1030e760de2ee24a784585b967e045bb21937b Mon Sep 17 00:00:00 2001 From: Jannis Vamvas Date: Fri, 4 Jun 2021 10:43:19 +0200 Subject: [PATCH] Fix code example for extracting dataset --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b1d757b..f53e09f 100644 --- a/README.md +++ b/README.md @@ -52,9 +52,9 @@ corpus](http://tallinzen.net/media/rnn_agreement/wikipedia.parsed.subset.50.gz) ```python from rnnagr.collect_agreement import CollectAgreement -from rnnagr.utils import deps_to_csv -import filenames -ca = CollectAgreement(filenames.parsed_wiki_subset_50, modes=('infreq_pos',), +from rnnagr.utils import deps_to_tsv +from rnnagr import filenames +ca = CollectAgreement(filenames.parsed_wiki_subset, modes=('infreq_pos',), skip=0, most_common=10000) ca.collect_agreement() deps_to_tsv(ca.deps, 'agr_mostcommon_10K.tsv')