Create skeleton
This commit is contained in:
parent
39e4ecf083
commit
697165fb63
1
validator/.gitignore
vendored
Normal file
1
validator/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
env/
|
18
validator/requirements.txt
Normal file
18
validator/requirements.txt
Normal file
@ -0,0 +1,18 @@
|
||||
certifi==2020.12.5
|
||||
chardet==4.0.0
|
||||
click==7.1.2
|
||||
Flask==1.1.2
|
||||
geneea-nlp-client==1.2.0
|
||||
idna==2.10
|
||||
itsdangerous==1.1.0
|
||||
Jinja2==2.11.2
|
||||
joblib==1.0.0
|
||||
MarkupSafe==1.1.1
|
||||
nltk==3.5
|
||||
regex==2020.11.13
|
||||
requests==2.25.1
|
||||
retrying==1.3.3
|
||||
six==1.15.0
|
||||
tqdm==4.56.0
|
||||
urllib3==1.26.2
|
||||
Werkzeug==1.0.1
|
10
validator/server.py
Normal file
10
validator/server.py
Normal file
@ -0,0 +1,10 @@
|
||||
from flask import Flask
|
||||
import json
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
return json.dumps({"Hello": "World!"})
|
||||
|
||||
app.run()
|
31
validator/validator.py
Normal file
31
validator/validator.py
Normal file
@ -0,0 +1,31 @@
|
||||
def process_jpg(f):
|
||||
pass
|
||||
|
||||
def process_pdf(f):
|
||||
pass
|
||||
|
||||
def process_docx(f):
|
||||
pass
|
||||
|
||||
def process_file(f):
|
||||
pass
|
||||
|
||||
def validate_court(lawsuit):
|
||||
pass
|
||||
|
||||
def validate_accuser(lawsuit):
|
||||
pass
|
||||
|
||||
# hard to implement
|
||||
def validate_topic():
|
||||
pass
|
||||
|
||||
# also hard to implement
|
||||
def validate_intent():
|
||||
pass
|
||||
|
||||
def validate_signature():
|
||||
pass
|
||||
|
||||
def validate_date():
|
||||
pass
|
Loading…
Reference in New Issue
Block a user