Skip to content

Instantly share code, notes, and snippets.

import torch
import numpy as np
from collections.abc import Iterable
from tqdm.auto import tqdm
from multiprocessing import Pool

from vina2vi.models.char_based.bigram import Bigram
from vina2vi.util import (
    Vietnamese,
2022-11-15T09:06:15.978736Z TRACE source{component_kind="source" component_id=vdc component_type=http_server component_name=vdc}: vector_core::fanout: Sent item to fanout.
2022-11-15T09:06:15.978752Z TRACE source{component_kind="source" component_id=vdc component_type=http_server component_name=vdc}: vector_buffers::topology::channel::limited_queue: Sent item.
2022-11-15T09:06:15.978764Z TRACE source{component_kind="source" component_id=vdc component_type=http_server component_name=vdc}: vector_core::fanout: Sent item to fanout.
2022-11-15T09:06:15.978779Z TRACE source{component_kind="source" component_id=vdc component_type=http_server component_name=vdc}: vector_buffers::topology::channel::limited_queue: Sent item.
2022-11-15T09:06:15.978791Z TRACE source{component_kind="source" component_id=vdc component_type=http_server component_name=vdc}: vector_core::fanout: Sent item to fanout.
2022-11-15T09:06:15.978803Z TRACE source{component_kind="source" component_id=vdc component_type=http_server component_name=vd