d04904cdd1df7afba9859868f4e487d3a2332070,demo_semiotic.py,,,#,6

Before Change



import scattertext as st

newsgroups_train = fetch_20newsgroups(subset="train", remove=("headers", "footers", "quotes"))

vectorizer = TfidfVectorizer()
tfidf_X = vectorizer.fit_transform(newsgroups_train.data)

corpus = st.CorpusFromScikit(
	X=CountVectorizer(vocabulary=vectorizer.vocabulary_).fit_transform(newsgroups_train.data),
	y=newsgroups_train.target,

After Change

import scattertext as st

movie_df = st.SampleCorpora.RottenTomatoes.get_data()

corpus = st.CorpusFromPandas(
	movie_df,
	category_col="category",
	text_col="text",
	nlp=st.whitespace_nlp_with_sentences
).build().get_unigram_corpus()

semiotic_square = st.SemioticSquare(
	corpus,
	category_a="fresh",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: JasonKessler/scattertext
Commit Name: d04904cdd1df7afba9859868f4e487d3a2332070
Time: 2018-01-08
Author: jason.kessler@gmail.com
File Name: demo_semiotic.py
Class Name:
Method Name:


Project Name: nilearn/nilearn
Commit Name: fa44d6988edb7b0fd7dee39b0cfe8cbb5a2286e9
Time: 2015-03-02
Author: loic.esteve@ymail.com
File Name: nilearn/plotting/tests/test_img_plotting.py
Class Name:
Method Name: test_plot_img_with_resampling


Project Name: ellisdg/3DUnetCNN
Commit Name: 26572a6f569dbe13d3b707ae103d089c8c425933
Time: 2018-03-14
Author: david.ellis@unmc.edu
File Name: unet3d/utils/utils.py
Class Name:
Method Name: resize