/usr/local/lib/python3.6/site-packages/sacremoses/__pycache__
Edit: /usr/local/lib/python3.6/site-packages/sacremoses/__pycache__/subwords.cpython-36.pyc (4650B)
3
Eg @ sP d dl mZ d dlZd dlmZmZ d dlmZ d dlm Z G dd de
ZdS ) )print_functionN)Counterdefaultdict)reduce)pairwisec @ sL e Zd ZdZdd ZdddZdd Zd d
Zdd Zd
d Z dddZ
dS )SubwordTokenizerzd
This is a Python port of the Subword NMT from
https://github.com/rsennrich/subword-nmt
c C s. | j || _| j \| _| _tj| j| _d S )N)get_vocabularyvocabget_pair_statisticsstatsindicescopydeepcopyZ big_stats)selffilename r =/usr/local/lib/python3.6/site-packages/sacremoses/subwords.py__init__ s zSubwordTokenizer.__init__Fc
C s t }t|R}|rJxF|D ]*}|j jd\}}|| t|7 <