Examples of fillerSet()


Examples of com.googlecode.gaal.analysis.api.Context.fillerSet()

        Iterable<EmbeddedInterval> contextExtractor = new EmbeddedContextExtractor(lst, corpus,
                new SupermaximalSetBuilder(), new NoContextFilter<EmbeddedInterval>(), WINDOW_SIZE);
        for (EmbeddedInterval embeddedInterval : contextExtractor) {
            Context context = new EmbeddedContext(embeddedInterval);
            System.out.printf("%s %s %s\n", corpus.toString(context.leftSequence(), " "),
                    corpus.toString(context.fillerSet(), " "), corpus.toString(context.rightSequence(), " "));
        }
    }

    @Test
    public void testEmbeddedContexts() {
View Full Code Here

Examples of com.googlecode.gaal.analysis.api.Context.fillerSet()

        for (EmbeddedInterval embeddedInterval : embeddedExtractor) {
            Context context = new EmbeddedContext(embeddedInterval);
            IntSequence left = context.leftSequence();
            IntSequence right = context.rightSequence();
            Multiset<IntSequence> expectedSet = fillerSet(left, right);
            Multiset<IntSequence> resultSet = context.fillerSet();
            if (!resultSet.equals(expectedSet)) {
                String leftString = corpus.toString(left, " ");
                String rightString = corpus.toString(right, " ");
                String expectedString = corpus.toString(expectedSet, " ");
                String resultString = corpus.toString(resultSet, " ");
View Full Code Here

Examples of com.googlecode.gaal.analysis.impl.EmbeddedIntervalExtractor.EmbeddedContext.fillerSet()

        Iterable<EmbeddedInterval> contextExtractor = new EmbeddedContextExtractor(lst, corpus,
                new SupermaximalSetBuilder(), new NoContextFilter<EmbeddedInterval>(), WINDOW_SIZE);
        for (EmbeddedInterval embeddedInterval : contextExtractor) {
            Context context = new EmbeddedContext(embeddedInterval);
            System.out.printf("%s %s %s\n", corpus.toString(context.leftSequence(), " "),
                    corpus.toString(context.fillerSet(), " "), corpus.toString(context.rightSequence(), " "));
        }
    }

    @Test
    public void testEmbeddedContexts() {
View Full Code Here

Examples of com.googlecode.gaal.analysis.impl.EmbeddedIntervalExtractor.EmbeddedContext.fillerSet()

        for (EmbeddedInterval embeddedInterval : embeddedExtractor) {
            Context context = new EmbeddedContext(embeddedInterval);
            IntSequence left = context.leftSequence();
            IntSequence right = context.rightSequence();
            Multiset<IntSequence> expectedSet = fillerSet(left, right);
            Multiset<IntSequence> resultSet = context.fillerSet();
            if (!resultSet.equals(expectedSet)) {
                String leftString = corpus.toString(left, " ");
                String rightString = corpus.toString(right, " ");
                String expectedString = corpus.toString(expectedSet, " ");
                String resultString = corpus.toString(resultSet, " ");
View Full Code Here

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

            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);
            }
        }
        return String.format("%s", corpus.toString(interval.label(), delimiter));
    }
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.