MCPcopy Create free account

hub / github.com/dhchenx/rsnltk / functions

Functions339 in github.com/dhchenx/rsnltk

↓ 1 callersMethodcompile
* This method is meant to be called multiple times, so that a batch * of regular expressions can be matched in parallel, as if they were * a
experiments/rsnltk-experiment/src/native/nlpsvc/regex/retrans.rs:38
↓ 1 callersFunctioncosine_distance
Calculates the cosine distance between two vectors Refer to [YouTube](https://www.youtube.com/watch?v=3X0wLRwU_Ws)
experiments/rsnltk-experiment/src/native/summarizer.rs:86
↓ 1 callersFunctioncosine_distance
Calculates the cosine distance between two vectors Refer to [YouTube](https://www.youtube.com/watch?v=3X0wLRwU_Ws)
src/native/summarizer.rs:86
↓ 1 callersFunctiondependency_tree
The dependency parsing module builds a tree structure of words from the input sentence, which represents the syntactic dependency relations between wo
experiments/rsnltk-experiment/src/stanza.rs:436
↓ 1 callersFunctiondependency_tree
The dependency parsing module builds a tree structure of words from the input sentence, which represents the syntactic dependency relations between wo
src/stanza.rs:436
↓ 1 callersFunctiondot_product
(vec1: &Vec<usize>, vec2: &Vec<usize>)
experiments/rsnltk-experiment/src/native/summarizer.rs:101
↓ 1 callersFunctiondot_product
(vec1: &Vec<usize>, vec2: &Vec<usize>)
src/native/summarizer.rs:101
↓ 1 callersFunctiondownload_lang
Download a necessary language model for the first time you use this toolkit!
experiments/rsnltk-experiment/src/stanza.rs:70
↓ 1 callersFunctiondownload_lang
Download a necessary language model for the first time you use this toolkit!
src/stanza.rs:70
↓ 1 callersFunctiondownload_langs
Download a list of necessary language models for the first time you use this toolkit!
experiments/rsnltk-experiment/src/stanza.rs:55
↓ 1 callersFunctiondownload_langs
Download a list of necessary language models for the first time you use this toolkit!
src/stanza.rs:55
↓ 1 callersFunctionfake_parse
(doc: &AnnotatedDocument)
experiments/rsnltk-experiment/src/native/nlpsvc/annotated_document.rs:81
↓ 1 callersFunctionfake_parse
(doc: &AnnotatedDocument)
experiments/rsnltk-experiment/tests/nlpsvc_test.rs:87
↓ 1 callersMethodfinish
(&mut self)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/retrans.rs:44
↓ 1 callersFunctionget_all_words_lc
(sentence1: &[&'a str], sentence2: &[&'a str])
experiments/rsnltk-experiment/src/native/summarizer.rs:51
↓ 1 callersFunctionget_all_words_lc
(sentence1: &[&'a str], sentence2: &[&'a str])
src/native/summarizer.rs:51
↓ 1 callersFunctionget_ngram
(str:&str,n:usize)
experiments/rsnltk-experiment/src/api/natural.rs:91
↓ 1 callersFunctionget_ngram
(str:&str,n:usize)
src/api/natural.rs:91
↓ 1 callersFunctionget_ngram_with_padding
(str:&'a str,n:usize,padding:&'a str)
experiments/rsnltk-experiment/src/api/natural.rs:95
↓ 1 callersFunctionget_ngram_with_padding
(str:&'a str,n:usize,padding:&'a str)
src/api/natural.rs:95
↓ 1 callersFunctionget_token_list
(s:&str)
experiments/rsnltk-experiment/src/native/token.rs:42
↓ 1 callersFunctionget_word_list
Get meaningful word list from non-english text like Chinese with the use of unicode-segmentation. (Not char list)
experiments/rsnltk-experiment/src/native/segmentation.rs:151
↓ 1 callersFunctionget_word_list
Get meaningful word list from non-english text like Chinese with the use of unicode-segmentation. (Not char list)
src/native/segmentation.rs:151
↓ 1 callersMethodground_labels
(&mut self, lblmap: &HashMap<Label,Label>)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reprog.rs:94
↓ 1 callersFunctionis_operator
* Used to tell when something is a boundary for concatenation. * No string that starts with one of these can be concatenated * with the preceding te
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reparse.rs:149
↓ 1 callersFunctionlang
Detect the language of text and route texts of different languages to different language specific pipelines. https://stanfordnlp.github.io/stanza/lang
experiments/rsnltk-experiment/src/stanza.rs:118
↓ 1 callersFunctionlang
Detect the language of text and route texts of different languages to different language specific pipelines. https://stanfordnlp.github.io/stanza/lang
src/stanza.rs:118
↓ 1 callersMethodlen
(&self)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reprog.rs:80
↓ 1 callersFunctionmwt_expand
This function expands a raw token into multiple syntactic words, which makes it easier to carry out Universal Dependencies analysis in some languages.
experiments/rsnltk-experiment/src/stanza.rs:9
↓ 1 callersFunctionmwt_expand
This function expands a raw token into multiple syntactic words, which makes it easier to carry out Universal Dependencies analysis in some languages.
src/stanza.rs:9
↓ 1 callersMethodnext_token
(&mut self, text: &str, pos: usize)
experiments/rsnltk-experiment/src/native/nlpsvc/english_rules.rs:50
↓ 1 callersMethodnum_action
(&mut self, _begin:usize, _end: usize, token: &mut NodeLabel)
experiments/rsnltk-experiment/src/native/nlpsvc/english_rules.rs:38
↓ 1 callersFunctionparse
(text: &str)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reparse.rs:14
↓ 1 callersFunctionparse_alt
(text: &'a str, ctx: &mut ParseContext)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reparse.rs:41
↓ 1 callersFunctionparse_atom
(text: &'a str, ctx: &mut ParseContext)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reparse.rs:105
↓ 1 callersFunctionparse_char_class
* The caller has already consumed the leading '[', so text[0] is either * '^' or a single char or the start of a char range. */
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reparse.rs:160
↓ 1 callersFunctionparse_conc
(text: &'a str, ctx: &mut ParseContext)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reparse.rs:59
↓ 1 callersFunctionparse_iter
* Because of expressions like 'b**', the rule has to be: * <iter> -> <iter> '*' * But this is left-recursive. */
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reparse.rs:83
↓ 1 callersFunctionpos
The Part-of-Speech (POS) & morphological features tagging module labels words with their universal POS (UPOS) tags, treebank-specific POS (XPOS) tags,
experiments/rsnltk-experiment/src/stanza.rs:167
↓ 1 callersFunctionpos
The Part-of-Speech (POS) & morphological features tagging module labels words with their universal POS (UPOS) tags, treebank-specific POS (XPOS) tags,
src/stanza.rs:167
↓ 1 callersFunctionpretty_print
(t: &Term, tab: usize)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reterm.rs:77
↓ 1 callersFunctionprint_label
(t: &Term)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reterm.rs:52
↓ 1 callersMethodprint_prog
(&self)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/retrans.rs:159
↓ 1 callersFunctionprint_tree
Print a tree in outline form Indent tab size is hard-coded as 4.
experiments/rsnltk-experiment/src/native/nlpsvc/tree_sequence.rs:196
↓ 1 callersFunctionprint_tree_sequence
Used to print a root-list when there is no single root node. The root list is formed by a sequence of nodes connected as siblings, but with no parent
experiments/rsnltk-experiment/src/native/nlpsvc/tree_sequence.rs:184
↓ 1 callersFunctionprint_usage
(program: &str, opts: &Options)
experiments/rsnltk-experiment/src/native/nlpsvc/text_source.rs:43
↓ 1 callersMethodpunct_action
(&mut self, _begin: usize, _end: usize, token: &mut NodeLabel)
experiments/rsnltk-experiment/src/native/nlpsvc/english_rules.rs:43
↓ 1 callersFunctionscan_class_elt
* Scan text for singleton chars and char ranges. * Return a char range (in either case), and the position of the * next unread byte in text. * Pro
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reparse.rs:197
↓ 1 callersFunctionscan_flags
* When this is called, we have already consumed the "(?" prefix * * <flags> ::= '(' '?' <flag-setting>+ ')' * <flag-setting> ::= '-'? <flag-letter>
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reparse.rs:257
↓ 1 callersFunctionsentence_similarity
(s1: &[&str], s2: &[&str], stop_words: &[&str])
experiments/rsnltk-experiment/src/native/summarizer.rs:115
↓ 1 callersFunctionsentence_similarity
(s1: &[&str], s2: &[&str], stop_words: &[&str])
src/native/summarizer.rs:115
↓ 1 callersFunctionsentiment
The SentimentProcessor adds a label for sentiment to each Sentence. The existing models each support negative, neutral, and positive, represented by 0
experiments/rsnltk-experiment/src/stanza.rs:251
↓ 1 callersFunctionsentiment
The SentimentProcessor adds a label for sentiment to each Sentence. The existing models each support negative, neutral, and positive, represented by 0
src/stanza.rs:251
↓ 1 callersMethodskip
Skip an unhandled character The character at `begin` is not the first character of any pattern that this tokenizer knows about. For symmetry with `ap
experiments/rsnltk-experiment/src/native/nlpsvc/english_rules.rs:90
↓ 1 callersFunctionsplit_into_words
(sentence: &str)
experiments/rsnltk-experiment/src/native/summarizer.rs:197
↓ 1 callersFunctionsplit_into_words
(sentence: &str)
src/native/summarizer.rs:197
↓ 1 callersFunctionsummarize
Summarize text
experiments/rsnltk-experiment/src/native/summarizer.rs:22
↓ 1 callersFunctiontab_over
* There has to be a better way to do this, but for the life of me, * I can't find it. */
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reterm.rs:46
↓ 1 callersFunctiontokenize
It performs tokenization and sentence segmentation at the same time. https://stanfordnlp.github.io/stanza/tokenize.html
experiments/rsnltk-experiment/src/stanza.rs:297
↓ 1 callersFunctiontokenize
It performs tokenization and sentence segmentation at the same time. https://stanfordnlp.github.io/stanza/tokenize.html
src/stanza.rs:297
↓ 1 callersFunctiontokenize_sentence
You can perform tokenization without sentence segmentation, as long as the sentences are split by two continuous newlines (\n\n) in the raw text.
experiments/rsnltk-experiment/src/stanza.rs:344
↓ 1 callersFunctiontokenize_sentence
You can perform tokenization without sentence segmentation, as long as the sentences are split by two continuous newlines (\n\n) in the raw text.
src/stanza.rs:344
↓ 1 callersMethodtrans_alt
translate(e1|e2, L0, L): L0: split L1, L2 L1: translate(e1, L1, L) L2: translate(e2, L2, L) */
experiments/rsnltk-experiment/src/native/nlpsvc/regex/retrans.rs:85
↓ 1 callersMethodtrans_any_char
(&mut self, l0: Label, l: Label)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/retrans.rs:141
↓ 1 callersMethodtrans_char
(&mut self, c: char, nocase: bool, l0: Label, l: Label)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/retrans.rs:137
↓ 1 callersMethodtrans_chcls
translate([es], L0, L: L0: charclass es goto L */
experiments/rsnltk-experiment/src/native/nlpsvc/regex/retrans.rs:149
↓ 1 callersMethodtrans_conc
translate(e1.e2, L0, L): L0: translate(e1, L0, L1) L1: translate(e2, L1, L) */
experiments/rsnltk-experiment/src/native/nlpsvc/regex/retrans.rs:98
↓ 1 callersMethodtrans_iter
translate(e*, L0, L): L0: split L1, L L1: translate(e, L1, L0) */
experiments/rsnltk-experiment/src/native/nlpsvc/regex/retrans.rs:109
↓ 1 callersMethodtrans_opt
translate(e?, L0, L): L0: split L1, L L1: translate(e, L1, L) */
experiments/rsnltk-experiment/src/native/nlpsvc/regex/retrans.rs:120
↓ 1 callersMethodtrans_pos
translate(e+, L0, L): L0: translate(e, L0, L1) L1: split L0, L */
experiments/rsnltk-experiment/src/native/nlpsvc/regex/retrans.rs:131
↓ 1 callersMethodtranslate_root
(&mut self, regex: &Term, rule_nbr: usize)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/retrans.rs:48
↓ 1 callersMethodword_action
(&mut self, _begin: usize, _end: usize, token: &mut NodeLabel)
experiments/rsnltk-experiment/src/native/nlpsvc/english_rules.rs:33
↓ 1 callersFunctionwordnet_similarity
Estimate the similarity between twn synsets based on WordNet (pip install semantic-kit) required
experiments/rsnltk-experiment/src/wordnet.rs:6
↓ 1 callersFunctionwordnet_similarity
Estimate the similarity between twn synsets based on WordNet (pip install semantic-kit) required
src/wordnet.rs:6
↓ 1 callersFunctionwv_clusters_create
let clusters = word2vec::wordclusters::WordClusters::load_from_file( "classes.txt").expect("Unable to load word clusters"); println!("{:?}", clusters.
experiments/rsnltk-experiment/src/native/word2vec.rs:102
↓ 1 callersFunctionwv_clusters_create
let clusters = word2vec::wordclusters::WordClusters::load_from_file( "classes.txt").expect("Unable to load word clusters"); println!("{:?}", clusters.
src/native/word2vec.rs:102
↓ 1 callersFunctionwv_get_cluster_from_clusters
println!("{:?}", clusters.get_words_on_cluster(6));
experiments/rsnltk-experiment/src/native/word2vec.rs:111
↓ 1 callersFunctionwv_get_cluster_from_clusters
println!("{:?}", clusters.get_words_on_cluster(6));
src/native/word2vec.rs:111
↓ 1 callersFunctionwv_get_model
(bin_path:&str)
experiments/rsnltk-experiment/src/native/word2vec.rs:51
↓ 1 callersFunctionwv_get_model
(bin_path:&str)
src/native/word2vec.rs:51
Methodactivate
(&self, memo: CursorMemo)
experiments/rsnltk-experiment/src/native/nlpsvc/tree_sequence.rs:32
Methodclear
* This data structure is designed to work well with uninitialized data, * so there is no need to clear everything to zero here. */
experiments/rsnltk-experiment/src/native/nlpsvc/regex/sparse.rs:80
Functionconfigure
()
experiments/rsnltk-experiment/src/native/nlpsvc/text_source.rs:24
Methodfmt
(&self, f: &mut fmt::Formatter)
experiments/rsnltk-experiment/src/native/nlpsvc/node_label.rs:40
Methodfmt
(&self, f: &mut fmt::Formatter)
experiments/rsnltk-experiment/src/native/nlpsvc/tree_sequence.rs:173
Methodfmt
(&self, f: &mut fmt::Formatter)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reprog.rs:50
Methodfmt
(&self, _: &mut fmt::Formatter)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reterm.rs:37
Functionget_index_max
Get maximum index and garantee that index does not exeed total length of Vec
experiments/rsnltk-experiment/src/native/text.rs:70
Functionget_index_min
Get mininum index and guarantee that index is alway >=0
experiments/rsnltk-experiment/src/native/text.rs:59
Methodget_program
(&self)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/retrans.rs:23
Methodget_sym_val
(&self, attr: &str)
experiments/rsnltk-experiment/src/native/nlpsvc/node_label.rs:34
Methodget_text
(&self)
experiments/rsnltk-experiment/src/native/nlpsvc/annotated_document.rs:113
Functionget_tf_idf
(strs:Vec<&str>,s:&str)
experiments/rsnltk-experiment/src/api/natural.rs:114
Functionget_tf_idf
(strs:Vec<&str>,s:&str)
src/api/natural.rs:114
Functionget_token_pos_list
()
experiments/rsnltk-experiment/tests/nlpsvc_test.rs:9
Methodindex
(&self, index: usize)
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reprog.rs:138
Methodindex_mut
type Output = Instruction;
experiments/rsnltk-experiment/src/native/nlpsvc/regex/reprog.rs:145
Methodis_boundary_char
(ch: char)
experiments/rsnltk-experiment/src/native/toksiter.rs:51
Methodis_boundary_char
(ch: char)
src/native/toksiter.rs:51
Functionis_kinda_yes
(str:&str)
experiments/rsnltk-experiment/src/api/yn.rs:24
← previousnext →101–200 of 339, ranked by callers