All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pingbu.nlp.LexiconWrapper Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package pingbu.nlp;

import java.util.Collection;

public class LexiconWrapper extends Lexicon {
    private Lexicon mLexicon = null;

    public LexiconWrapper(String debugName) {
        super(debugName);
    }

    public void setLexicon(Lexicon lexicon) {
        mLexicon = lexicon;
    }

    @Override
    public final int getType() {
        return mLexicon.getType();
    }

    @Override
    public int getItemCount() {
        return mLexicon.getItemCount();
    }

    @Override
    public String getItemText(int id) {
        return mLexicon.getItemText(id);
    }

    @Override
    public Collection getItemParams(int id) {
        return mLexicon.getItemParams(id);
    }

    @Override
    public int findItem(String text) {
        return mLexicon.findItem(text);
    }

    @Override
    public Collection search(String text) {
        return mLexicon.search(text);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy