package getalp.wsd.common.utils;

import java.io.InputStream;
import java.nio.file.FileAlreadyExistsException;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import java.util.ArrayList;
import java.util.List;

public class Resources
{
    private static boolean copied = false;

    public static void extractResources(String tmpdir) throws Exception
    {
        if (copied) return;
        List<String> data = listResources();
        for (String file : data)
        {
            copyResourceIntoDir("/" + file, tmpdir);
        }
        copied = true;
    }

    private static List<String> listResources()
    {
        List<String> data = new ArrayList<>();
        data.add("data/wordnet/30/AUTHORS");
        data.add("data/wordnet/30/dict/adv.exc");
        data.add("data/wordnet/30/dict/index.noun");
        data.add("data/wordnet/30/dict/sentidx.vrb");
        data.add("data/wordnet/30/dict/data.adj");
        data.add("data/wordnet/30/dict/data.verb");
        data.add("data/wordnet/30/dict/sents.vrb");
        data.add("data/wordnet/30/dict/log.grind.3.0");
        data.add("data/wordnet/30/dict/cntlist");
        data.add("data/wordnet/30/dict/adj.exc");
        data.add("data/wordnet/30/dict/cntlist.rev");
        data.add("data/wordnet/30/dict/data.adv");
        data.add("data/wordnet/30/dict/index.sense");
        data.add("data/wordnet/30/dict/frames.vrb");
        data.add("data/wordnet/30/dict/verb.exc");
        data.add("data/wordnet/30/dict/index.adv");
        data.add("data/wordnet/30/dict/index.verb");
        data.add("data/wordnet/30/dict/data.noun");
        data.add("data/wordnet/30/dict/noun.exc");
        data.add("data/wordnet/30/dict/index.adj");
        data.add("data/wordnet/30/dict/verb.Framestext");
        data.add("data/wordnet/30/dict/lexnames");
        data.add("data/wordnet/30/COPYING");
        data.add("data/wordnet/17/dict/Makefile");
        data.add("data/wordnet/17/dict/adv.exc");
        data.add("data/wordnet/17/dict/index.noun");
        data.add("data/wordnet/17/dict/sentidx.vrb");
        data.add("data/wordnet/17/dict/data.adj");
        data.add("data/wordnet/17/dict/data.verb");
        data.add("data/wordnet/17/dict/sents.vrb");
        data.add("data/wordnet/17/dict/cntlist");
        data.add("data/wordnet/17/dict/adj.exc");
        data.add("data/wordnet/17/dict/cntlist.rev");
        data.add("data/wordnet/17/dict/data.adv");
        data.add("data/wordnet/17/dict/index.sense");
        data.add("data/wordnet/17/dict/frames.vrb");
        data.add("data/wordnet/17/dict/verb.exc");
        data.add("data/wordnet/17/dict/index.adv");
        data.add("data/wordnet/17/dict/index.verb");
        data.add("data/wordnet/17/dict/data.noun");
        data.add("data/wordnet/17/dict/noun.exc");
        data.add("data/wordnet/17/dict/index.adj");
        data.add("data/wordnet/17/dict/lexnames");
        data.add("data/wordnet/171/dict/Makefile");
        data.add("data/wordnet/171/dict/adv.exc");
        data.add("data/wordnet/171/dict/index.noun");
        data.add("data/wordnet/171/dict/sentidx.vrb");
        data.add("data/wordnet/171/dict/data.adj");
        data.add("data/wordnet/171/dict/data.verb");
        data.add("data/wordnet/171/dict/sents.vrb");
        data.add("data/wordnet/171/dict/cntlist");
        data.add("data/wordnet/171/dict/adj.exc");
        data.add("data/wordnet/171/dict/cntlist.rev");
        data.add("data/wordnet/171/dict/data.adv");
        data.add("data/wordnet/171/dict/index.sense");
        data.add("data/wordnet/171/dict/frames.vrb");
        data.add("data/wordnet/171/dict/verb.exc");
        data.add("data/wordnet/171/dict/index.adv");
        data.add("data/wordnet/171/dict/index.verb");
        data.add("data/wordnet/171/dict/data.noun");
        data.add("data/wordnet/171/dict/noun.exc");
        data.add("data/wordnet/171/dict/index.adj");
        data.add("data/wordnet/171/dict/lexnames");
        data.add("data/wordnet/21/AUTHORS");
        data.add("data/wordnet/21/dict/Makefile");
        data.add("data/wordnet/21/dict/adv.exc");
        data.add("data/wordnet/21/dict/Makefile.am");
        data.add("data/wordnet/21/dict/index.noun");
        data.add("data/wordnet/21/dict/sentidx.vrb");
        data.add("data/wordnet/21/dict/data.adj");
        data.add("data/wordnet/21/dict/data.verb");
        data.add("data/wordnet/21/dict/sents.vrb");
        data.add("data/wordnet/21/dict/cntlist");
        data.add("data/wordnet/21/dict/adj.exc");
        data.add("data/wordnet/21/dict/Makefile.in");
        data.add("data/wordnet/21/dict/cntlist.rev");
        data.add("data/wordnet/21/dict/data.adv");
        data.add("data/wordnet/21/dict/index.sense");
        data.add("data/wordnet/21/dict/frames.vrb");
        data.add("data/wordnet/21/dict/verb.exc");
        data.add("data/wordnet/21/dict/index.adv");
        data.add("data/wordnet/21/dict/index.verb");
        data.add("data/wordnet/21/dict/log.grind.2.1");
        data.add("data/wordnet/21/dict/data.noun");
        data.add("data/wordnet/21/dict/noun.exc");
        data.add("data/wordnet/21/dict/index.adj");
        data.add("data/wordnet/21/dict/verb.Framestext");
        data.add("data/wordnet/21/COPYING");
        data.add("data/wordnet/31/dict/cousin.exc");
        data.add("data/wordnet/31/dict/adv.exc");
        data.add("data/wordnet/31/dict/index.noun");
        data.add("data/wordnet/31/dict/sentidx.vrb");
        data.add("data/wordnet/31/dict/data.adj");
        data.add("data/wordnet/31/dict/data.verb");
        data.add("data/wordnet/31/dict/sents.vrb");
        data.add("data/wordnet/31/dict/cntlist");
        data.add("data/wordnet/31/dict/adj.exc");
        data.add("data/wordnet/31/dict/dbfiles/adj.ppl");
        data.add("data/wordnet/31/dict/dbfiles/verb.stative");
        data.add("data/wordnet/31/dict/dbfiles/noun.body");
        data.add("data/wordnet/31/dict/dbfiles/adj.pert");
        data.add("data/wordnet/31/dict/dbfiles/noun.animal");
        data.add("data/wordnet/31/dict/dbfiles/verb.communication");
        data.add("data/wordnet/31/dict/dbfiles/verb.creation");
        data.add("data/wordnet/31/dict/dbfiles/verb.motion");
        data.add("data/wordnet/31/dict/dbfiles/noun.act");
        data.add("data/wordnet/31/dict/dbfiles/noun.quantity");
        data.add("data/wordnet/31/dict/dbfiles/noun.phenomenon");
        data.add("data/wordnet/31/dict/dbfiles/verb.emotion");
        data.add("data/wordnet/31/dict/dbfiles/verb.consumption");
        data.add("data/wordnet/31/dict/dbfiles/noun.plant");
        data.add("data/wordnet/31/dict/dbfiles/cntlist");
        data.add("data/wordnet/31/dict/dbfiles/verb.body");
        data.add("data/wordnet/31/dict/dbfiles/noun.attribute");
        data.add("data/wordnet/31/dict/dbfiles/noun.object");
        data.add("data/wordnet/31/dict/dbfiles/verb.change");
        data.add("data/wordnet/31/dict/dbfiles/noun.event");
        data.add("data/wordnet/31/dict/dbfiles/noun.state");
        data.add("data/wordnet/31/dict/dbfiles/verb.competition");
        data.add("data/wordnet/31/dict/dbfiles/noun.cognition");
        data.add("data/wordnet/31/dict/dbfiles/noun.communication");
        data.add("data/wordnet/31/dict/dbfiles/noun.time");
        data.add("data/wordnet/31/dict/dbfiles/verb.cognition");
        data.add("data/wordnet/31/dict/dbfiles/noun.artifact");
        data.add("data/wordnet/31/dict/dbfiles/noun.possession");
        data.add("data/wordnet/31/dict/dbfiles/noun.substance");
        data.add("data/wordnet/31/dict/dbfiles/verb.possession");
        data.add("data/wordnet/31/dict/dbfiles/adv.all");
        data.add("data/wordnet/31/dict/dbfiles/verb.perception");
        data.add("data/wordnet/31/dict/dbfiles/noun.food");
        data.add("data/wordnet/31/dict/dbfiles/noun.shape");
        data.add("data/wordnet/31/dict/dbfiles/noun.relation");
        data.add("data/wordnet/31/dict/dbfiles/noun.location");
        data.add("data/wordnet/31/dict/dbfiles/noun.person");
        data.add("data/wordnet/31/dict/dbfiles/noun.process");
        data.add("data/wordnet/31/dict/dbfiles/verb.weather");
        data.add("data/wordnet/31/dict/dbfiles/verb.contact");
        data.add("data/wordnet/31/dict/dbfiles/verb.Framestext");
        data.add("data/wordnet/31/dict/dbfiles/noun.feeling");
        data.add("data/wordnet/31/dict/dbfiles/adj.all");
        data.add("data/wordnet/31/dict/dbfiles/noun.motive");
        data.add("data/wordnet/31/dict/dbfiles/noun.group");
        data.add("data/wordnet/31/dict/dbfiles/verb.social");
        data.add("data/wordnet/31/dict/dbfiles/noun.Tops");
        data.add("data/wordnet/31/dict/cntlist.rev");
        data.add("data/wordnet/31/dict/data.adv");
        data.add("data/wordnet/31/dict/index.sense");
        data.add("data/wordnet/31/dict/verb.exc");
        data.add("data/wordnet/31/dict/index.adv");
        data.add("data/wordnet/31/dict/index.verb");
        data.add("data/wordnet/31/dict/log.grind.3.1");
        data.add("data/wordnet/31/dict/data.noun");
        data.add("data/wordnet/31/dict/noun.exc");
        data.add("data/wordnet/31/dict/index.adj");
        data.add("data/wordnet/31/dict/verb.Framestext");
        data.add("data/wordnet/16/AUTHORS");
        data.add("data/wordnet/16/dict/cousin.exc");
        data.add("data/wordnet/16/dict/Makefile");
        data.add("data/wordnet/16/dict/adv.exc");
        data.add("data/wordnet/16/dict/index.noun");
        data.add("data/wordnet/16/dict/sentidx.vrb");
        data.add("data/wordnet/16/dict/data.adj");
        data.add("data/wordnet/16/dict/data.verb");
        data.add("data/wordnet/16/dict/sents.vrb");
        data.add("data/wordnet/16/dict/cntlist");
        data.add("data/wordnet/16/dict/adj.exc");
        data.add("data/wordnet/16/dict/data.adv");
        data.add("data/wordnet/16/dict/index.sense");
        data.add("data/wordnet/16/dict/index.gloss");
        data.add("data/wordnet/16/dict/cousin.tops");
        data.add("data/wordnet/16/dict/stoplist.pl");
        data.add("data/wordnet/16/dict/verb.exc");
        data.add("data/wordnet/16/dict/index.adv");
        data.add("data/wordnet/16/dict/index.verb");
        data.add("data/wordnet/16/dict/data.noun");
        data.add("data/wordnet/16/dict/noun.exc");
        data.add("data/wordnet/16/dict/index.adj");
        data.add("data/wordnet/16/dict/lexnames");
        data.add("data/wordnet/16/COPYING");
        data.add("data/wordnet/20/dict/Makefile");
        data.add("data/wordnet/20/dict/adv.exc");
        data.add("data/wordnet/20/dict/index.noun");
        data.add("data/wordnet/20/dict/sentidx.vrb");
        data.add("data/wordnet/20/dict/data.adj");
        data.add("data/wordnet/20/dict/data.verb");
        data.add("data/wordnet/20/dict/sents.vrb");
        data.add("data/wordnet/20/dict/cntlist");
        data.add("data/wordnet/20/dict/adj.exc");
        data.add("data/wordnet/20/dict/cntlist.rev");
        data.add("data/wordnet/20/dict/data.adv");
        data.add("data/wordnet/20/dict/index.sense");
        data.add("data/wordnet/20/dict/frames.vrb");
        data.add("data/wordnet/20/dict/verb.exc");
        data.add("data/wordnet/20/dict/index.adv");
        data.add("data/wordnet/20/dict/index.verb");
        data.add("data/wordnet/20/dict/data.noun");
        data.add("data/wordnet/20/dict/noun.exc");
        data.add("data/wordnet/20/dict/index.adj");
        data.add("data/wordnet/20/dict/lexnames");
        /*
        data.add("data/wordnet/cluster/30");
        data.add("data/wordnet/cluster/21");
        */
        /*
        data.add("data/wordnet/mapping/mapping-15-171/wn15-171.noun");
        data.add("data/wordnet/mapping/mapping-15-171/wn15-171.adj");
        data.add("data/wordnet/mapping/mapping-15-171/wn15-171.verb");
        data.add("data/wordnet/mapping/mapping-15-171/wn15-171.adv");
        data.add("data/wordnet/mapping/mapping-17-16/wn17-16.adv");
        data.add("data/wordnet/mapping/mapping-17-16/wn17-16.adj");
        data.add("data/wordnet/mapping/mapping-17-16/wn17-16.verb");
        data.add("data/wordnet/mapping/mapping-17-16/wn17-16.noun");
        data.add("data/wordnet/mapping/mapping-17-30/wn17-30.verb");
        data.add("data/wordnet/mapping/mapping-17-30/wn17-30.adj");
        data.add("data/wordnet/mapping/mapping-17-30/wn17-30.adv");
        data.add("data/wordnet/mapping/mapping-17-30/wn17-30.noun");
        data.add("data/wordnet/mapping/mapping-30-15/wn30-15.adv");
        data.add("data/wordnet/mapping/mapping-30-15/wn30-15.verb");
        data.add("data/wordnet/mapping/mapping-30-15/wn30-15.adj");
        data.add("data/wordnet/mapping/mapping-30-15/wn30-15.noun");
        data.add("data/wordnet/mapping/mapping-171-17/wn171-17.adv");
        data.add("data/wordnet/mapping/mapping-171-17/wn171-17.noun");
        data.add("data/wordnet/mapping/mapping-171-17/wn171-17.adj");
        data.add("data/wordnet/mapping/mapping-171-17/wn171-17.verb");
        data.add("data/wordnet/mapping/mapping-30-20/wn30-20.adj");
        data.add("data/wordnet/mapping/mapping-30-20/wn30-20.noun");
        data.add("data/wordnet/mapping/mapping-30-20/wn30-20.verb");
        data.add("data/wordnet/mapping/mapping-30-20/wn30-20.adv");
        data.add("data/wordnet/mapping/mapping-21-30/wn21-30.noun");
        data.add("data/wordnet/mapping/mapping-21-30/wn21-30.adv");
        data.add("data/wordnet/mapping/mapping-21-30/wn21-30.adj");
        data.add("data/wordnet/mapping/mapping-21-30/wn21-30.verb");
        data.add("data/wordnet/mapping/mapping-20-17/wn20-17.noun");
        data.add("data/wordnet/mapping/mapping-20-17/wn20-17.verb");
        data.add("data/wordnet/mapping/mapping-20-17/wn20-17.adj");
        data.add("data/wordnet/mapping/mapping-20-17/wn20-17.adv");
        data.add("data/wordnet/mapping/mapping-21-16/wn21-16.verb");
        data.add("data/wordnet/mapping/mapping-21-16/wn21-16.noun");
        data.add("data/wordnet/mapping/mapping-21-16/wn21-16.adj");
        data.add("data/wordnet/mapping/mapping-21-16/wn21-16.adv");
        data.add("data/wordnet/mapping/mapping-20-21/wn20-21.verb");
        data.add("data/wordnet/mapping/mapping-20-21/wn20-21.noun");
        data.add("data/wordnet/mapping/mapping-20-21/wn20-21.adj");
        data.add("data/wordnet/mapping/mapping-20-21/wn20-21.adv");
        data.add("data/wordnet/mapping/mapping-15-20/wn15-20.adv");
        data.add("data/wordnet/mapping/mapping-15-20/wn15-20.adj");
        data.add("data/wordnet/mapping/mapping-15-20/wn15-20.noun");
        data.add("data/wordnet/mapping/mapping-15-20/wn15-20.verb");
        data.add("data/wordnet/mapping/mapping-15-30/wn15-30.verb");
        data.add("data/wordnet/mapping/mapping-15-30/wn15-30.adv");
        data.add("data/wordnet/mapping/mapping-15-30/wn15-30.adj");
        data.add("data/wordnet/mapping/mapping-15-30/wn15-30.noun");
        data.add("data/wordnet/mapping/mapping-17-21/wn17-21.adj");
        data.add("data/wordnet/mapping/mapping-17-21/wn17-21.adv");
        data.add("data/wordnet/mapping/mapping-17-21/wn17-21.noun");
        data.add("data/wordnet/mapping/mapping-17-21/wn17-21.verb");
        data.add("data/wordnet/mapping/mapping-17-20/wn17-20.adv");
        data.add("data/wordnet/mapping/mapping-17-20/wn17-20.noun");
        data.add("data/wordnet/mapping/mapping-17-20/wn17-20.adj");
        data.add("data/wordnet/mapping/mapping-17-20/wn17-20.verb");
        data.add("data/wordnet/mapping/mapping-171-16/wn171-16.verb");
        data.add("data/wordnet/mapping/mapping-171-16/wn171-16.noun");
        data.add("data/wordnet/mapping/mapping-171-16/wn171-16.adv");
        data.add("data/wordnet/mapping/mapping-171-16/wn171-16.adj");
        data.add("data/wordnet/mapping/mapping-15-21/wn15-21.adj");
        data.add("data/wordnet/mapping/mapping-15-21/wn15-21.adv");
        data.add("data/wordnet/mapping/mapping-15-21/wn15-21.noun");
        data.add("data/wordnet/mapping/mapping-15-21/wn15-21.verb");
        data.add("data/wordnet/mapping/LICENSE");
        data.add("data/wordnet/mapping/mapping-21-20/wn21-20.noun");
        data.add("data/wordnet/mapping/mapping-21-20/wn21-20.adv");
        data.add("data/wordnet/mapping/mapping-21-20/wn21-20.verb");
        data.add("data/wordnet/mapping/mapping-21-20/wn21-20.adj");
        data.add("data/wordnet/mapping/mapping-171-15/wn171-15.verb");
        data.add("data/wordnet/mapping/mapping-171-15/wn171-15.noun");
        data.add("data/wordnet/mapping/mapping-171-15/wn171-15.adj");
        data.add("data/wordnet/mapping/mapping-171-15/wn171-15.adv");
        data.add("data/wordnet/mapping/mapping-30-171/wn30-171.adv");
        data.add("data/wordnet/mapping/mapping-30-171/wn30-171.adj");
        data.add("data/wordnet/mapping/mapping-30-171/wn30-171.noun");
        data.add("data/wordnet/mapping/mapping-30-171/wn30-171.verb");
        data.add("data/wordnet/mapping/mapping-17-171/wn17-171.verb");
        data.add("data/wordnet/mapping/mapping-17-171/wn17-171.noun");
        data.add("data/wordnet/mapping/mapping-17-171/wn17-171.adj");
        data.add("data/wordnet/mapping/mapping-17-171/wn17-171.adv");
        data.add("data/wordnet/mapping/mapping-16-171/wn16-171.adj");
        data.add("data/wordnet/mapping/mapping-16-171/wn16-171.adv");
        data.add("data/wordnet/mapping/mapping-16-171/wn16-171.verb");
        data.add("data/wordnet/mapping/mapping-16-171/wn16-171.noun");
        data.add("data/wordnet/mapping/mapping-171-21/wn171-21.adj");
        data.add("data/wordnet/mapping/mapping-171-21/wn171-21.verb");
        data.add("data/wordnet/mapping/mapping-171-21/wn171-21.adv");
        data.add("data/wordnet/mapping/mapping-171-21/wn171-21.noun");
        data.add("data/wordnet/mapping/mapping-16-30/wn16-30.adj");
        data.add("data/wordnet/mapping/mapping-16-30/wn16-30.verb");
        data.add("data/wordnet/mapping/mapping-16-30/wn16-30.noun");
        data.add("data/wordnet/mapping/mapping-16-30/wn16-30.adv");
        data.add("data/wordnet/mapping/mapping-15-16/wn15-16.adv");
        data.add("data/wordnet/mapping/mapping-15-16/wn15-16.noun");
        data.add("data/wordnet/mapping/mapping-15-16/wn15-16.adj");
        data.add("data/wordnet/mapping/mapping-15-16/wn15-16.verb");
        data.add("data/wordnet/mapping/mapping-20-16/wn20-16.adj");
        data.add("data/wordnet/mapping/mapping-20-16/wn20-16.adv");
        data.add("data/wordnet/mapping/mapping-20-16/wn20-16.noun");
        data.add("data/wordnet/mapping/mapping-20-16/wn20-16.verb");
        data.add("data/wordnet/mapping/README");
        data.add("data/wordnet/mapping/mapping-21-171/wn21-171.adj");
        data.add("data/wordnet/mapping/mapping-21-171/wn21-171.verb");
        data.add("data/wordnet/mapping/mapping-21-171/wn21-171.noun");
        data.add("data/wordnet/mapping/mapping-21-171/wn21-171.adv");
        data.add("data/wordnet/mapping/mapping-30-16/wn30-16.verb");
        data.add("data/wordnet/mapping/mapping-30-16/wn30-16.adj");
        data.add("data/wordnet/mapping/mapping-30-16/wn30-16.adv");
        data.add("data/wordnet/mapping/mapping-30-16/wn30-16.noun");
        data.add("data/wordnet/mapping/mapping-20-171/wn20-171.adv");
        data.add("data/wordnet/mapping/mapping-20-171/wn20-171.adj");
        data.add("data/wordnet/mapping/mapping-20-171/wn20-171.noun");
        data.add("data/wordnet/mapping/mapping-20-171/wn20-171.verb");
        data.add("data/wordnet/mapping/mapping-16-21/wn16-21.noun");
        data.add("data/wordnet/mapping/mapping-16-21/wn16-21.adj");
        data.add("data/wordnet/mapping/mapping-16-21/wn16-21.adv");
        data.add("data/wordnet/mapping/mapping-16-21/wn16-21.verb");
        data.add("data/wordnet/mapping/mapping-20-15/wn20-15.adv");
        data.add("data/wordnet/mapping/mapping-20-15/wn20-15.noun");
        data.add("data/wordnet/mapping/mapping-20-15/wn20-15.verb");
        data.add("data/wordnet/mapping/mapping-20-15/wn20-15.adj");
        data.add("data/wordnet/mapping/mapping-16-17/wn16-17.noun");
        data.add("data/wordnet/mapping/mapping-16-17/wn16-17.verb");
        data.add("data/wordnet/mapping/mapping-16-17/wn16-17.adv");
        data.add("data/wordnet/mapping/mapping-16-17/wn16-17.adj");
        data.add("data/wordnet/mapping/mapping-171-30/wn171-30.noun");
        data.add("data/wordnet/mapping/mapping-171-30/wn171-30.adj");
        data.add("data/wordnet/mapping/mapping-171-30/wn171-30.verb");
        data.add("data/wordnet/mapping/mapping-171-30/wn171-30.adv");
        data.add("data/wordnet/mapping/mapping-30-17/wn30-17.adv");
        data.add("data/wordnet/mapping/mapping-30-17/wn30-17.noun");
        data.add("data/wordnet/mapping/mapping-30-17/wn30-17.verb");
        data.add("data/wordnet/mapping/mapping-30-17/wn30-17.adj");
        data.add("data/wordnet/mapping/mapping-15-17/wn15-17.adj");
        data.add("data/wordnet/mapping/mapping-15-17/wn15-17.verb");
        data.add("data/wordnet/mapping/mapping-15-17/wn15-17.adv");
        data.add("data/wordnet/mapping/mapping-15-17/wn15-17.noun");
        data.add("data/wordnet/mapping/mapping-16-15/wn16-15.noun");
        data.add("data/wordnet/mapping/mapping-16-15/wn16-15.adv");
        data.add("data/wordnet/mapping/mapping-16-15/wn16-15.adj");
        data.add("data/wordnet/mapping/mapping-16-15/wn16-15.verb");
        data.add("data/wordnet/mapping/mapping-20-30/wn20-30.verb");
        data.add("data/wordnet/mapping/mapping-20-30/wn20-30.adv");
        data.add("data/wordnet/mapping/mapping-20-30/wn20-30.adj");
        data.add("data/wordnet/mapping/mapping-20-30/wn20-30.noun");
        data.add("data/wordnet/mapping/mapping-171-20/wn171-20.adj");
        data.add("data/wordnet/mapping/mapping-171-20/wn171-20.verb");
        data.add("data/wordnet/mapping/mapping-171-20/wn171-20.adv");
        data.add("data/wordnet/mapping/mapping-171-20/wn171-20.noun");
        data.add("data/wordnet/mapping/mapping-21-15/wn21-15.adv");
        data.add("data/wordnet/mapping/mapping-21-15/wn21-15.noun");
        data.add("data/wordnet/mapping/mapping-21-15/wn21-15.verb");
        data.add("data/wordnet/mapping/mapping-21-15/wn21-15.adj");
        data.add("data/wordnet/mapping/mapping-21-17/wn21-17.verb");
        data.add("data/wordnet/mapping/mapping-21-17/wn21-17.noun");
        data.add("data/wordnet/mapping/mapping-21-17/wn21-17.adj");
        data.add("data/wordnet/mapping/mapping-21-17/wn21-17.adv");
        data.add("data/wordnet/mapping/mapping-30-21/wn30-21.verb");
        data.add("data/wordnet/mapping/mapping-30-21/wn30-21.noun");
        data.add("data/wordnet/mapping/mapping-30-21/wn30-21.adv");
        data.add("data/wordnet/mapping/mapping-30-21/wn30-21.adj");
        data.add("data/wordnet/mapping/mapping-16-20/wn16-20.verb");
        data.add("data/wordnet/mapping/mapping-16-20/wn16-20.adj");
        data.add("data/wordnet/mapping/mapping-16-20/wn16-20.noun");
        data.add("data/wordnet/mapping/mapping-16-20/wn16-20.adv");
        data.add("data/wordnet/mapping/mapping-17-15/wn17-15.verb");
        data.add("data/wordnet/mapping/mapping-17-15/wn17-15.adj");
        data.add("data/wordnet/mapping/mapping-17-15/wn17-15.adv");
        data.add("data/wordnet/mapping/mapping-17-15/wn17-15.noun");
        */
        /*
        data.add("data/stanford/models/english-left3words-distsim.tagger");
        data.add("data/stanford/models/english-bidirectional-distsim.tagger.props");
        data.add("data/stanford/models/README-Models.txt");
        data.add("data/stanford/models/english-bidirectional-distsim.tagger");
        data.add("data/stanford/models/english-left3words-distsim.tagger.props");
        */
        return data;
    }

    private static void copyResourceIntoDir(String resourceFilePath, String dirPath) throws Exception
    {
        InputStream in = File.class.getResourceAsStream(resourceFilePath);
        java.io.File tmpFile = new java.io.File(dirPath, resourceFilePath);
        tmpFile.getParentFile().mkdirs();
        //Files.copy(in, tmpFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
        try
        {
            Files.copy(in, tmpFile.toPath());
        }
        catch (FileAlreadyExistsException ignored)
        {

        }
        in.close();
    }
}
