['occipital lobe']] terms_b = [['vision'], ['audition', 'auditory'], ['somatosensory'], ['olfaction', 'smell'], ['gustation', 'taste'], ['proprioception'], ['nociception', 'pain']] ################################################################################################### # Set terms lists # Different terms lists are indexed by the 'A' and 'B' labels counts.add_terms(terms_a, dim='A') counts.add_terms(terms_b, dim='B') ################################################################################################### # Collect co-occurrence data counts.run_collection() ################################################################################################### # # From there you can use all the same methods to explore the data we just collected. # # In the next tutorial, we explore analyzing our collected counts data. # # For now, let's save out our collected counts data, using the LISC utility to save the object. # ################################################################################################### # Save out the counts object save_object(counts, 'tutorial_counts', directory=SCDB('lisc_db'))
# Because of this, the :class:`~.Words` object allows for continuously saving collected data. # If set to True, the `save_and_clear` parameter saves out collected data, and clears the # object per term, so that collected data does not have to stay in RAM. # # Now, let's run our bigger collection, using some of these settings. # ################################################################################################### # Set up our database object, so we can save out data as we go db = SCDB('lisc_db') # Collect words data words.run_collection(usehistory=True, retmax=15, save_and_clear=True, directory=db) ################################################################################################### # # After this collection, the Words object does not actually include the collected data, # as the data was saved and cleared throughout the collection. # # The Words object does still have all the information about the search terms, which we can # use to reload our data, so it is still worth saving as well. # # We will analyze our words data in the next tutorial. For now lets save out the Words object. # ################################################################################################### # Save out the words data save_object(words, 'tutorial_words', directory=db)