Interface NCVariant

    • Method Detail

      • getMatchedTokens

        default List<NCToken> getMatchedTokens()
        Utility method that returns all non-freeword tokens. It's equivalent to:
             return stream().filter(tok -> !tok.isFreeWord() && !tok.isStopWord()).collect(Collectors.toList());
         
        Returns:
        All non-freeword tokens.
        See Also:
        NCToken.isFreeWord()
      • getFreeTokens

        default List<NCToken> getFreeTokens()
        Utility method that returns all freeword tokens. It's equivalent to:
             return stream().filter(NCToken::isFreeWord).collect(Collectors.toList());
         
        Returns:
        All freeword tokens.
        See Also:
        NCToken.isFreeWord()
      • getAbstractTokens

        default List<NCToken> getAbstractTokens()
        Utility method that returns all abstract tokens. It's equivalent to:
             return stream().filter(NCToken::isAbstract).collect(Collectors.toList());
         
        Returns:
        All abstract tokens.
        See Also:
        NCToken.isAbstract()
      • getStopWordTokens

        default List<NCToken> getStopWordTokens()
        Utility method that returns all stop word tokens. It's equivalent to:
             return stream().filter(NCToken::isStopWord).collect(Collectors.toList());
         
        Returns:
        All stop word tokens.
        See Also:
        NCToken.isAbstract()
      • getUserDefinedTokens

        default List<NCToken> getUserDefinedTokens()
        Utility method that returns all user-defined tokens. It's equivalent to:
             return stream().filter(NCToken::isUserDefined).collect(Collectors.toList());
         
        Returns:
        All user-defined tokens.
        See Also:
        NCToken.isUserDefined()