Menu

Tree [ba46a8] master /
 History

HTTPS access


File Date Author Commit
 Tag4JLib 2015-12-01 Raffaele Raffaele [a7acf3] new release
 doc 2015-12-01 Raffaele Raffaele [a7acf3] new release
 README.md 2015-12-02 Raffaele__90 Raffaele__90 [ba46a8] Update README.md
 Tag4JLib.jar 2015-12-01 Raffaele Raffaele [a7acf3] new release

Read Me

Tag4J

A java library for Tag Recommendation

Tag recommendation is the action of recommending new tags

to be added to a resource based on the tags the resource already has or

other information about the resource such as its title.

This java library does just that.

This library uses an association rules based approach to come up with the desidered list of recommended tags,

so it makes extensive use of weka library to carry out data mining processing on data.

I hope javadocs are clear, but it is always useful

present a few lines of code to show the proper use of a library:

Quick tutorial

Recommender r = new Recommender(1); 

List<List<String>> list = new ArrayList<List<String>();

        List<String> tagSet1 = new ArrayList<String>();
        tagSet1.add("Saturn");
        tagSet1.add("Mars");
        tagSet1.add("Jupiter");

        List<String> tagSet2 = new ArrayList<String>();
        tagSet2.add("Venus");
        tagSet2.add("Mars");
        tagSet2.add("Earth");

        ...

        list.add(tagSet1);
        list.add(tagSet2);
        ...

        r.computeRules(list);

        List<String> myTags = new ArrayList<String>();
        myTags.add("Mars");
        myTags.add("Pluto");

        List<Sting> suggested = r.suggestTags(myTags,null);
MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.
Try Free →