예제 #1
0
 def __init__(self, corpus, **kwargs):
     '''See ScatterChart.  This lets you click on terms to see what contexts they tend to appear in.
     Running the `to_dict` function outputs
     '''
     assert (isinstance(corpus, Corpus)) or (isinstance(
         corpus, TermCategoryFrequencies))
     ScatterChart.__init__(self, corpus, **kwargs)
예제 #2
0
	def __init__(self,
	             corpus,
	             **kwargs):
		'''See ScatterChart.  This lets you click on terms to see what contexts they tend to appear in.

		'''
		assert isinstance(corpus, Corpus)
		ScatterChart.__init__(self, corpus, **kwargs)
예제 #3
0
 def __init__(self, corpus, verbose=False, **kwargs):
     '''See ScatterChart.  This lets you click on terms to see what contexts they tend to appear in.
     Running the `to_dict` function outputs
     '''
     # if not (isinstance(corpus, (Corpus, ParsedCorpus, CorpusDF, TermCategoryFrequencies))
     #        or (issubclass(type(corpus), (Corpus, ParsedCorpus, CorpusDF, TermCategoryFrequencies)))):
     #    raise AssertionError(corpus, 'of type', type(corpus),
     #                         'must be a subclass of Corpus or TermCategoryFrequencies.')
     ScatterChart.__init__(self, corpus, verbose, **kwargs)
     self._term_metadata = None
 def __init__(self,
              corpus,
              **kwargs):
     '''See ScatterChart.  This lets you click on terms to see what contexts they tend to appear in.
     Running the `to_dict` function outputs
     '''
     #if not (isinstance(corpus, (Corpus, ParsedCorpus, CorpusDF, TermCategoryFrequencies))
     #        or (issubclass(type(corpus), (Corpus, ParsedCorpus, CorpusDF, TermCategoryFrequencies)))):
     #    raise AssertionError(corpus, 'of type', type(corpus),
     #                         'must be a subclass of Corpus or TermCategoryFrequencies.')
     ScatterChart.__init__(self, corpus, **kwargs)
     self._term_metadata = None