800dcf66028cc6d35a9d3984d9bff1992a13f16e,textacy/data.py,,load_depechemood,#Any#Any#,84
Before Change
// let"s make sure this file exists...
_ = os.path.isfile(fname)
logger.info("Loading DepecheMood lexicon from %s", fname)
return json.loads(read_csv(
fname, sep="\t", index_col="Lemma//PoS").to_json(orient="index"))
After Change
_ = os.path.isfile(fname)
logger.info("Loading DepecheMood lexicon from %s", fname)
with open(fname, "r") as csvfile:
csvreader = csv.reader(csvfile, delimiter="\t")
rows = list(csvreader)
cols = rows[0]
return {row[0]: {cols[i]: float(row[i]) for i in range(1, 9)}
for row in rows[1:]}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: chartbeat-labs/textacy
Commit Name: 800dcf66028cc6d35a9d3984d9bff1992a13f16e
Time: 2016-02-11
Author: burton@chartbeat.com
File Name: textacy/data.py
Class Name:
Method Name: load_depechemood
Project Name: PyThaiNLP/pythainlp
Commit Name: b75cf8fad96fd1b8905724e0cca17012a88a64fe
Time: 2017-01-02
Author: wannaphong@yahoo.com
File Name: pythainlp/corpus/thaipos.py
Class Name:
Method Name: get_data
Project Name: biolab/orange3
Commit Name: 8d4d199c35f5163ed21ae705a16ce3c8548d60c6
Time: 2012-11-28
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/data/io.py
Class Name: BasketReader
Method Name: prescan_file