Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

Commit

Permalink
Merge pull request #3 from novoic/feature/smooth_cli
Browse files Browse the repository at this point in the history
Smoother CLI experience
  • Loading branch information
abhisheknovoic authored May 22, 2020
2 parents f67edf9 + 665e5d3 commit f3a1361
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/blabla
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import yaml
import os
from jsonschema import validate
import pandas as pd

from tqdm import tqdm

features_json_schema = {
'type': 'object',
Expand Down Expand Up @@ -50,7 +50,7 @@ def compute_features(features_yaml_path, stanza_config_file_path, input_dir_path
with DocumentProcessor(
stanza_config_file_path, features_json['language']
) as doc_proc:
for input_fp in os.listdir(input_dir_path):
for input_fp in tqdm(os.listdir(input_dir_path)):
with open(os.path.join(input_dir_path, input_fp)) as f:
content = f.read()
doc = doc_proc.analyze(content, input_format)
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"ipython==7.13.0",
"jsonschema==3.2.0",
"pyyaml==5.3.1",
"pandas==1.0.3"
"pandas==1.0.3",
"tqdm==4.46.0"
],
package_data={"": ["*.txt"]},
include_package_data=True,
Expand Down
4 changes: 2 additions & 2 deletions stanza_config/stanza_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ stanza:
processors: 'tokenize,lemma,pos,mwt,depparse,ner'
dir: 'stanza_resources'
corenlp:
timeout: 30000
timeout: 300000
memory: '4G'
endpoint: 'http://localhost:9001'
be_quiet: False
be_quiet: True

0 comments on commit f3a1361

Please sign in to comment.