Remove ujson library

Just use the standard library, the extra dependency is not worth it
This commit is contained in:
Giovanni Campagna 2020-01-16 21:00:22 -08:00
parent 3da2e8f805
commit 47479a3b65
7 changed files with 6 additions and 16 deletions

View File

@ -10,7 +10,6 @@ numpy = "*"
torch = "~=1.4"
revtok = "==0.0.3"
tqdm = "~=4.0"
ujson = "*"
pyrouge = ">=0.1.3"
sacrebleu = "~=1.0"
tensorboardX = "==2.0.*"

10
Pipfile.lock generated
View File

@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
"sha256": "c8a3e10dfb33615c6f43668e4ffdbd1abb10f73704be9e3bc9a327e9102c6fee"
"sha256": "31b73f746a52946e1ca1cf3dee92c32acf94a80fc06fe7a498f515ce1b8a9ab3"
},
"pipfile-spec": 6,
"requires": {
@ -149,7 +149,6 @@
"sha256:73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c",
"sha256:75bb3f31ea686f1197762692a9ee6a7550b59fc6ca3a1f4b5d7e32fb98e2da2a"
],
"index": "pypi",
"version": "==2.8.1"
},
"regex": {
@ -300,13 +299,6 @@
],
"version": "==3.7.4.1"
},
"ujson": {
"hashes": [
"sha256:f66073e5506e91d204ab0c614a148d5aa938bdbf104751be66f8ad7a222f5f86"
],
"index": "pypi",
"version": "==1.35"
},
"urllib3": {
"hashes": [
"sha256:a8a318824cc77d1fd4b2bec2ded92646630d7fe8619497b142c84a9e6f5a7293",

View File

@ -30,7 +30,7 @@
import os
from argparse import ArgumentParser
import ujson as json
import json
import torch
import sys
import logging

View File

@ -30,7 +30,7 @@
from argparse import ArgumentParser
import ujson as json
import json
import torch
import asyncio
import logging

View File

@ -34,7 +34,7 @@ import os
import torch
import random
import numpy as np
import ujson as json
import json
import logging
from .data.numericalizer import SimpleNumericalizer
from .data.example import Batch
@ -206,4 +206,4 @@ def load_config_json(args):
setattr(args, r, None)
args.dropout_ratio = 0.0
args.best_checkpoint = os.path.join(args.path, args.checkpoint_name)
args.best_checkpoint = os.path.join(args.path, args.checkpoint_name)

View File

@ -33,7 +33,7 @@ Created on Mar 3, 2019
'''
import torch
import ujson as json
import json
import os
import logging

View File

@ -52,7 +52,6 @@ setuptools.setup(
'revtok==0.0.3',
'tqdm~=4.0',
'tensorboardX==2.0.*',
'ujson',
'pyrouge>=0.1.3',
'sacrebleu~=1.0',
'requests~=2.22',