Package com.googlecode.gaal.suffix.api.EmbeddedSuffixTree

Examples of com.googlecode.gaal.suffix.api.EmbeddedSuffixTree.EmbeddedInterval.label()


    public static String toString(Interval interval, Corpus<String> corpus) {
        if (interval instanceof EmbeddedInterval) {
            EmbeddedInterval embeddedInterval = (EmbeddedInterval) interval;
            return String.format("%s$\\dots$%s", toString(embeddedInterval.getEmbeddingInterval(), corpus),
                    corpus.toString(embeddedInterval.label(), DELIMITER));
        }
        return corpus.toString(interval.label(), DELIMITER);
    }

    public static void mapInterval(Interval interval, IntSequence indices, Map<Integer, Integer> repeatsMap, int number) {
View Full Code Here


    public static <S> String toString(Interval interval, Corpus<S> corpus, boolean asLaTeX) {
        if (interval instanceof EmbeddedInterval) {
            EmbeddedInterval embeddedInterval = (EmbeddedInterval) interval;
            String embeddingLabel = toString(embeddedInterval.getEmbeddingInterval(), corpus, asLaTeX);
            String embeddedLabel = corpus.toString(embeddedInterval.label(), delimiter);
            if (asLaTeX) {
                return String.format("%s \\dots %s", embeddingLabel, embeddedLabel);
            } else {
                return String.format("%s %s %s", embeddingLabel,
                        corpus.toString(embeddedInterval.fillerSet(), delimiter), embeddedLabel);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.