concepts.language.ccg.learning.auto_research_novel_words#
- auto_research_novel_words(base_learning_func, ccg, sentence, max_research, **kwargs)[source]#
A helper function that automatically perform re-search for known words in a sentence.
- Parameters:
base_learning_func (Callable) – the base learning function to be used for learning a CCG lexicon from a sentence. Can be
by_parsing()
, orby_parsing_with_lexicon_gen()
, orby_grounding()
.ccg (CCG) – the CCG grammar.
max_research (int) – the maximum number of words whose lexicon will be re-searched.
**kwargs – additional keyword arguments to be passed to the
base_learning_func
.
- Return type: