Title Creating a Dictionary of Character-Words Pairs.
Catalog Type SLCItem
Persistent ID https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/py_char_dict_llm__677ffcb007784185798147b2?index=1
Platform Name PCEX
Features
Description Construct a program that has a function which receives a string and creates a dictionary that maps each character to the list of distinct words in the given string that start with that character. The dictionary should be case insensitive.\nFor example, if the given string is "This is my test score", the program creates the following dictionary:\nt : ['this', 'test']\ni : ['is']\nm : ['my']\ns : ['score']
Keywords
Author Mohammad Hassany
Institution University of Pittsburgh
Iframe URL https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/py_char_dict_llm__677ffcb007784185798147b2?index=1
Protocol SPLICE
Protocol URL
License MIT
Programming Language PYTHON
Natural Language en

Preview

SPLICE Output