If you want to assign incremental ids to a list of words then you can define a defultdict as follows:
wpids = defaultdict(lambda: len(wpids))
wpids = defaultdict(lambda: len(wpids))
This blog covers various topics from technical tweaks to latest in computational linguistics, Artificial Intelligence, Machine Learning and Wed Data Mining.
For nvidia GPUs do the follwing: nvidia-smi -l 1
No comments:
Post a Comment