Package io.lumify.core.model.termMention

Examples of io.lumify.core.model.termMention.TermMentionBuilder


        int start = charOffset + tokenListPositions[foundName.getStart()].getStart();
        int end = charOffset + tokenListPositions[foundName.getEnd() - 1].getEnd();
        String type = foundName.getType();
        String ontologyClassUri = mapToOntologyIri(type);

        return new TermMentionBuilder()
                .sourceVertex(sourceVertex)
                .propertyKey(propertyKey)
                .start(start)
                .end(end)
                .title(name)
View Full Code Here


        VisibilityJson visibilitySource = new VisibilityJson();
        long startOffset = offsets.getInt(0);
        long endOffset = offsets.getInt(1);
        String title = LumifyProperties.TITLE.getPropertyValue(vertex);

        new TermMentionBuilder()
                .sourceVertex(tweetVertex)
                .propertyKey(MULTI_VALUE_KEY)
                .start(startOffset)
                .end(endOffset)
                .title(title)
View Full Code Here

        while (matcher.find()) {
            final String patternGroup = matcher.group();
            int start = matcher.start();
            int end = matcher.end();

            Vertex termMention = new TermMentionBuilder()
                    .sourceVertex(sourceVertex)
                    .propertyKey(data.getProperty().getKey())
                    .start(start)
                    .end(end)
                    .title(patternGroup)
View Full Code Here

TOP

Related Classes of io.lumify.core.model.termMention.TermMentionBuilder

Copyright © 2018 www.massapicom. 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.