in hypernymysuite/unsup.py [0:0]
def __init__(self, space_filename, pos_tagged_space=None):
logging.info("Prepping sparse matrix")
self.space_filename = space_filename
self.matrix, self.objects, full_vocab, col_vocab = read_sparse_matrix(
space_filename
)
if pos_tagged_space is None:
logging.warning("Having to guess whether this is a POS tagged space.")
pos_tagged_space = "animal-n" in full_vocab
# hard hack to mark it as POS tagged or not
if pos_tagged_space:
logging.info("This is a POS tagged space.")
self.vocab = POSSearchDict(full_vocab)
else:
logging.info("This is a non-tagged space.")
self.vocab = full_vocab