This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft-website.git
The following commit(s) were added to refs/heads/master by this push:
new 94e6d60 Fix for NLPCRAFT-428
94e6d60 is described below
commit 94e6d608ae32ff2d72462144d532d6014d25169b
Author: Aaron Radzinski <[email protected]>
AuthorDate: Fri Sep 3 21:46:45 2021 -0700
Fix for NLPCRAFT-428
---
_data/idl-fns.yml | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
diff --git a/_data/idl-fns.yml b/_data/idl-fns.yml
index 5abc037..220a6ab 100644
--- a/_data/idl-fns.yml
+++ b/_data/idl-fns.yml
@@ -381,6 +381,28 @@ fn-token:
@parts = tok_find_parts(@this, 'alias')
@tok = if(is_empty(@parts), @this, first(@parts))
+ - name: tok_txt
+ sig: |
+ <b>tok_txt</b>(t: Token<em><sub>opt</sub></em>) ⇒ String
+ synopsis: Returns token's original text
+ desc: |
+ Returns <a class="not-code" target="javadoc"
href="/apis/latest/org/apache/nlpcraft/model/NCToken.html#getOriginalText()">token's
original text</a>.
+ If <code>t</code> is not provided the current token is assumed.
+ usage: |
+ // Result: token original input text.
+ tok_txt
+
+ - name: tok_norm_txt
+ sig: |
+ <b>tok_norm_txt</b>(t: Token<em><sub>opt</sub></em>) ⇒ String
+ synopsis: Returns token's normalized text
+ desc: |
+ Returns <a class="not-code" target="javadoc"
href="/apis/latest/org/apache/nlpcraft/model/NCToken.html#getNormalizedText()">token's
normalized text</a>.
+ If <code>t</code> is not provided the current token is assumed.
+ usage: |
+ // Result: token normalized input text.
+ tok_norm_txt
+
- name: tok_index
sig: |
<b>tok_index</b>(t: Token<em><sub>opt</sub></em>) ⇒ Long
@@ -437,6 +459,36 @@ fn-token:
// Result: 'true' if there is a token with ID 'a' before this token.
tok_is_after_id('a')
+ - name: tok_is_between_ids
+ sig: |
+ <b>tok_is_between_ids</b>(id1: String, id2: String) ⇒ Boolean
+ synopsis: Returns <code>true</code> if this token is located between
tokens with IDs <code>id1</code> and <code>id2</code>.
+ desc: |
+ Returns <code>true</code> if this token is located between tokens with
IDs <code>id1</code> and <code>id2</code>.
+ usage: |
+ // Result: 'true' if this token is located after token with ID 'before'
and before the token with ID 'after'.
+ tok_is_between_ids('before', 'after')
+
+ - name: tok_is_between_groups
+ sig: |
+ <b>tok_is_between_groups</b>(grp1: String, grp2: String) ⇒ Boolean
+ synopsis: Returns <code>true</code> if this token is located between
tokens with group IDs <code>grp1</code> and <code>grp2</code>.
+ desc: |
+ Returns <code>true</code> if this token is located between tokens with
group IDs <code>grp1</code> and <code>grp2</code>.
+ usage: |
+ // Result: 'true' if this token is located after token belonging to the
group 'before' and before the token belonging to the group 'after'.
+ tok_is_between_groups('before', 'after')
+
+ - name: tok_is_between_parents
+ sig: |
+ <b>tok_is_between_parents</b>(id1: String, id2: String) ⇒ Boolean
+ synopsis: Returns <code>true</code> if this token is located between
tokens with parent IDs <code>id1</code> and <code>id2</code>.
+ desc: |
+ Returns <code>true</code> if this token is located between tokens with
parent IDs <code>id1</code> and <code>id2</code>.
+ usage: |
+ // Result: 'true' if this token is located after token with parent ID
'before' and before the token with parent ID 'after'.
+ tok_is_between_parents('before', 'after')
+
- name: tok_is_before_group
sig: |
<b>tok_is_before_group</b>(grp: String) ⇒ Boolean
@@ -1558,6 +1610,17 @@ fn-text:
size(@lst)
count(@lst)
+ - name: regex
+ sig: |
+ <b>regex</b>(s: String, rx: String) ⇒ Boolean
+ synopsis: Checks whether string <code>s</code> matches Java regular
expression <code>rx</code>
+ desc: |
+ Returns <code>true</code> if string <code><b>s</b></code> matches Java
regular expression <code><b>rx</b></code>,
+ <code>false</code> otherwise.
+ usage: |
+ regex('textabc', '^text.*$') // Returns 'true'.
+ regex('_textabc', '^text.*$') // Returns 'false'.
+
- name: trim
sig: |
<b>trim</b>(p: String) ⇒ Long