private void addUrlWordsToWordField(String urlStr, List<WordField> wordsFields)
            throws MalformedURLException {
        URL url = new URL(urlStr);
        String host = url.getHost();
        int index = host.lastIndexOf(".");
        if (index != -1) {
            host = "host_" + host.substring(index + 1);
            wordsFields.add(new WordField(WordField.URLFIELD, host));
        }
        PaginaURL pageParser = new PaginaURL(url, url.getFile(), stopwords);
        String[] terms = pageParser.words();
        for (String term : terms) {
            wordsFields.add(new WordField(WordField.URLFIELD, stemming(term)));
        }
    }
Put the words in URL into bag of words

@param urlStr String
@param wordsFields Vector list of word
ache/src/main/java/achecrawler/link/classifier/builder/LinkNeighborhoodWrapper.java