de83e84dd87aef0dea564de76c648c72d0f6b5a1,conceptnet5/vectors/evaluation/analogy.py,,eval_google_analogies,#,219
Before Change
for quad in quads:
prompt = quad[:3]
answer = quad[3]
vector = analogy_func(frame, *prompt)
similar = similar_to_vec(tframe, vector)
result = None
for match in similar.index:
if match not in prompt:
result = match
break
if result == answer:
correct += 1
else:
if result not in seen_mistakes:
After Change
if vocab_size == "cheat":
vocab = [
standardized_uri("en", word)
for word in sorted(set([quad[3] for quad in quads]))
]
else:
vocab = [
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: commonsense/conceptnet5
Commit Name: de83e84dd87aef0dea564de76c648c72d0f6b5a1
Time: 2017-04-05
Author: rob@luminoso.com
File Name: conceptnet5/vectors/evaluation/analogy.py
Class Name:
Method Name: eval_google_analogies
Project Name: githubharald/SimpleHTR
Commit Name: a91b4632b2e85bc3d0df94381562546db7a194b5
Time: 2021-02-17
Author: harald@newpc.com
File Name: src/Model.py
Class Name: Model
Method Name: decoderOutputToText
Project Name: LCAV/pyroomacoustics
Commit Name: 86657a6fce233ae2c4210490e9dcb4dd18ad9103
Time: 2016-06-14
Author: fakufaku@gmail.com
File Name: pyroomacoustics/acoustics.py
Class Name:
Method Name: bands_hz2s