Merge pull request #3441 from explosion/fix/cli-ud-scripts

💫 Move UD scripts to bin
This commit is contained in:
Matthew Honnibal 2019-03-20 12:19:15 +01:00 committed by GitHub
commit 1c8ff59185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 21 additions and 25 deletions

View File

@ -13,14 +13,14 @@ import srsly
import spacy
import spacy.util
from ...tokens import Token, Doc
from ...gold import GoldParse
from ...util import compounding, minibatch_by_words
from ...syntax.nonproj import projectivize
from ...matcher import Matcher
from spacy.tokens import Token, Doc
from spacy.gold import GoldParse
from spacy.util import compounding, minibatch_by_words
from spacy.syntax.nonproj import projectivize
from spacy.matcher import Matcher
# from ...morphology import Fused_begin, Fused_inside
from ... import displacy
# from spacy.morphology import Fused_begin, Fused_inside
from spacy import displacy
from collections import defaultdict, Counter
from timeit import default_timer as timer
@ -33,10 +33,10 @@ import numpy.random
from . import conll17_ud_eval
from ... import lang
from ...lang import zh
from ...lang import ja
from ...lang import ru
from spacy import lang
from spacy.lang import zh
from spacy.lang import ja
from spacy.lang import ru
################

View File

@ -13,12 +13,12 @@ import json
import spacy
import spacy.util
from ...tokens import Token, Doc
from ...gold import GoldParse
from ...util import compounding, minibatch, minibatch_by_words
from ...syntax.nonproj import projectivize
from ...matcher import Matcher
from ... import displacy
from spacy.tokens import Token, Doc
from spacy.gold import GoldParse
from spacy.util import compounding, minibatch, minibatch_by_words
from spacy.syntax.nonproj import projectivize
from spacy.matcher import Matcher
from spacy import displacy
from collections import defaultdict, Counter
from timeit import default_timer as timer
@ -28,9 +28,9 @@ import numpy.random
from . import conll17_ud_eval
from ... import lang
from ...lang import zh
from ...lang import ja
from spacy import lang
from spacy.lang import zh
from spacy.lang import ja
try:
import torch

View File

@ -9,8 +9,7 @@ if __name__ == "__main__":
import sys
from wasabi import Printer
from spacy.cli import download, link, info, package, train, pretrain, convert
from spacy.cli import init_model, profile, evaluate, validate
from spacy.cli import ud_train, ud_evaluate, debug_data
from spacy.cli import init_model, profile, evaluate, validate, debug_data
msg = Printer()
@ -21,9 +20,7 @@ if __name__ == "__main__":
"train": train,
"pretrain": pretrain,
"debug-data": debug_data,
"ud-train": ud_train,
"evaluate": evaluate,
"ud-evaluate": ud_evaluate,
"convert": convert,
"package": package,
"init-model": init_model,

View File

@ -10,4 +10,3 @@ from .evaluate import evaluate # noqa: F401
from .convert import convert # noqa: F401
from .init_model import init_model # noqa: F401
from .validate import validate # noqa: F401
from .ud import ud_train, ud_evaluate # noqa: F401