
com.graphaware.nlp.dsl.function.TextFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nlp Show documentation
Show all versions of nlp Show documentation
GraphAware Framework Module for adding NLP capabilities to Neo4j.
The newest version!
package com.graphaware.nlp.dsl.function;
import com.graphaware.nlp.dsl.AbstractDSL;
import com.graphaware.nlp.util.TextUtils;
import org.neo4j.procedure.Name;
import org.neo4j.procedure.UserFunction;
import java.util.List;
public class TextFunction extends AbstractDSL {
@UserFunction(name = "ga.nlp.text.replaceAll")
public String replaceAll(@Name("searches") List searches, @Name("original") String original) {
return TextUtils.replaceEach(searches, original);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy