private Instance mapFeaturesToInstance(String[] features, WordField[] words) {
        Instance instance = new Instance(features);
        for (WordField wordField : words) {
            String field = (WordField.FIELD_NAMES[wordField.getField()]).toLowerCase();
            String word = wordField.getWord();
            if (wordField.getField() == WordField.URLFIELD || wordField.getField() == WordField.SRC) {
                List<String> wordsTemp = searchSubstring(wordField.getWord(), wordField.getField());
                for (String s : wordsTemp) {
                    word = s;
                    word = field + "_" + word;
                    instance.setValue(word, 1.0);
                }
            } else {
                if (word != null) {
                    word = field + "_" + word;
                    instance.setValue(word, 1.0);
                }
            }
        }
        return instance;
    }
Extract the information from links as word in the URL, anchor and around links, and converts
it to an Instance object

@param linkNeighboors The LinkNeighborhood instances to be converted to Instance
@param features String[] pre-defined words
@return HashMap mapping url -> instance
ache/src/main/java/achecrawler/link/classifier/builder/LinkNeighborhoodWrapper.java