The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
(.*_.*){2,}
int maxLength = getParameterAsInt(PARAMETER_MAX_LENGTH);int minLength = getParameterAsInt(PARAMETER_MIN_LENGTH);for (int i = 0; i < tokenList.size(); i++) { for (int j = minLength - 1; j < maxLength; j++) { StringBuffer s = new StringBuffer(); if (i + j < tokenList.size()) for (int z = i; z < i + j + 1; z++) { s.append(tokenList.get(z)); if (z != i + j) s.append('_'); } if (s.length() > 0) ngrams.add(new Token(s.toString(), tokenList.get(i))); }}
types.add(new ParameterTypeInt(PARAMETER_MIN_LENGTH, "The minimal length of the ngrams.", 1, (int) Double.POSITIVE_INFINITY, 2, false));
any response on this? I have a similar use case where order of n-grams dont matter and i want to group "word1-word2-word3" same as "word2-word1-word3"
is that possible?
The link posted above doesnt work
Can't you use the Extract Information operator for this?
Join us for a community conversation on how High-Performance Computing (HPC) and Simcenter PSIM work together to meet the increasing demands of modern power electronics simulation. During this one-hour technical session, you'll discover how leveraging HPC can speed up simulations, improve scalability, and empower engineers…
Join us for a community conversation on accelerating your motor simulation workflow with Simcenter Simlab. In this beginner-friendly session, we'll introduce the platform's automated model-building capabilities and show how easy it is to set up your first electric motor analysis. You'll see the basic steps of geometry…
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…