├── .gitignore ├── README.md ├── baidu ├── WebLtp_python3_demo.py ├── __init__.py └── baidu_parse.py ├── data ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-36.pyc │ ├── property_collect.cpython-36.pyc │ └── property_collect.cpython-37.pyc ├── classify.py ├── property_collect.py ├── save_to_mongo.py ├── segment.py └── washing.py ├── data_resource ├── __init__.py └── __pycache__ │ └── __init__.cpython-36.pyc ├── data_segment ├── __init__.py └── law_basic_info_process.py ├── fact_triple_extraction ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-36.pyc │ ├── xf_ltp_api.cpython-36.pyc │ └── xunfei_graphviz.cpython-36.pyc ├── aim_and_accord_extraction │ ├── __init__.py │ ├── __pycache__ │ │ └── __init__.cpython-36.pyc │ └── aim_and_accord_extract.py ├── complex_content_extraction │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-36.pyc │ │ ├── complex_analysis.cpython-36.pyc │ │ ├── complex_extrate.cpython-36.pyc │ │ └── get_content.cpython-36.pyc │ ├── complex_analysis.py │ ├── complex_extrate.py │ ├── complex_relation_process.py │ └── get_content.py ├── forbid_relation_extract │ ├── __init__.py │ └── forbid_relation_extraction.py ├── punishment_extract │ ├── __init__.py │ └── violate_punishment_extract.py ├── response_to_explain │ ├── __init__.py │ ├── responsible_to_explain.py │ └── single_relation_subject_merge.py ├── scope_of_application_extraction │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-36.pyc │ │ └── scope_of_application_extraction.cpython-36.pyc │ └── scope_of_application_extraction.py ├── single_content_extraction │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-36.pyc │ │ └── get_single_content.cpython-36.pyc │ ├── get_single_content.py │ ├── single_analysis.py │ ├── single_extract.py │ ├── single_relation_process.py │ └── write_single_analysis.py ├── triple_extraction_example │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-36.pyc │ │ └── fact_triple_extraction.cpython-36.pyc │ ├── fact_triple_extraction.py │ ├── input.txt │ ├── law_extraction_test.py │ └── output.txt ├── xf_ltp_api.py └── xunfei_graphviz.py ├── flask_project ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-36.pyc │ ├── drawInfo.cpython-36.pyc │ ├── questionAnswer.cpython-36.pyc │ └── search.cpython-36.pyc ├── drawInfo.py ├── flask_start.py ├── questionAnswer.py └── search.py ├── knowledge_graph ├── __init__.py └── basic_kg_process │ ├── __init__.py │ ├── key_words_extract.py │ ├── law_process.py │ └── sentence_process.py ├── nsq_test ├── __init__.py └── task.py ├── question_template ├── __init__.py ├── ner_tag_generate.py └── template_generate.py ├── relation_extract_based_collection ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-36.pyc │ └── relation_extract.cpython-36.pyc ├── accord_relation_extract.py ├── aim_ralation_extract.py ├── application_scope_relation_extract.py ├── contain_relation_extract.py ├── define_relation_extract.py ├── duty_relation_extract.py ├── forbid_relation_extract.py ├── relation_extract.py ├── right_relation_extract.py └── wash_law.py ├── relation_wash ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-36.pyc │ └── insert_new_subject.cpython-36.pyc ├── insert_new_subject.py ├── subject_type.py └── wash_relation.py ├── requirements.txt ├── sentences ├── __init__.py ├── classify_parser │ ├── __init__.py │ ├── environment_protection_parser.py │ ├── forest_fire_prevention_parser.py │ ├── forest_park_parser.py │ ├── greening_regulations_parser.py │ ├── science_spot_parser.py │ ├── soil_and_water_conservation_parser.py │ ├── trees_and_seeds_parser.py │ ├── wetland_law_parser.py │ └── wild_animals_parser.py ├── level_parser │ ├── __init__.py │ └── content_level_parser.py └── sentences_parser.py ├── syntactic_analysis ├── Digraph.gv ├── Digraph.gv.pdf ├── __init__.py ├── __pycache__ │ └── __init__.cpython-36.pyc ├── dependent_syntactic_analysis.py ├── graphviz_test.py ├── sentence_extract.py └── syntactic_analysis_core.py ├── template_match ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-36.pyc │ └── tf_idf.cpython-36.pyc └── tf_idf.py ├── time_control_using_thread ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-36.pyc │ └── timeout_control.cpython-36.pyc └── timeout_control.py └── word2vec ├── __init__.py ├── collection_expand.py ├── init_relation_collection.py └── sentence_process.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/README.md -------------------------------------------------------------------------------- /baidu/WebLtp_python3_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/baidu/WebLtp_python3_demo.py -------------------------------------------------------------------------------- /baidu/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/baidu/__init__.py -------------------------------------------------------------------------------- /baidu/baidu_parse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/baidu/baidu_parse.py -------------------------------------------------------------------------------- /data/__init__.py: -------------------------------------------------------------------------------- 1 | # 初步数据清洗 2 | -------------------------------------------------------------------------------- /data/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/data/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /data/__pycache__/property_collect.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/data/__pycache__/property_collect.cpython-36.pyc -------------------------------------------------------------------------------- /data/__pycache__/property_collect.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/data/__pycache__/property_collect.cpython-37.pyc -------------------------------------------------------------------------------- /data/classify.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/data/classify.py -------------------------------------------------------------------------------- /data/property_collect.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/data/property_collect.py -------------------------------------------------------------------------------- /data/save_to_mongo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/data/save_to_mongo.py -------------------------------------------------------------------------------- /data/segment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/data/segment.py -------------------------------------------------------------------------------- /data/washing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/data/washing.py -------------------------------------------------------------------------------- /data_resource/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/data_resource/__init__.py -------------------------------------------------------------------------------- /data_resource/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/data_resource/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /data_segment/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data_segment/law_basic_info_process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/data_segment/law_basic_info_process.py -------------------------------------------------------------------------------- /fact_triple_extraction/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fact_triple_extraction/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /fact_triple_extraction/__pycache__/xf_ltp_api.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/__pycache__/xf_ltp_api.cpython-36.pyc -------------------------------------------------------------------------------- /fact_triple_extraction/__pycache__/xunfei_graphviz.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/__pycache__/xunfei_graphviz.cpython-36.pyc -------------------------------------------------------------------------------- /fact_triple_extraction/aim_and_accord_extraction/__init__.py: -------------------------------------------------------------------------------- 1 | # 提取法律法规颁布的目的和根据 2 | 3 | -------------------------------------------------------------------------------- /fact_triple_extraction/aim_and_accord_extraction/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/aim_and_accord_extraction/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /fact_triple_extraction/aim_and_accord_extraction/aim_and_accord_extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/aim_and_accord_extraction/aim_and_accord_extract.py -------------------------------------------------------------------------------- /fact_triple_extraction/complex_content_extraction/__init__.py: -------------------------------------------------------------------------------- 1 | # 抽取复杂句中的关系 2 | -------------------------------------------------------------------------------- /fact_triple_extraction/complex_content_extraction/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/complex_content_extraction/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /fact_triple_extraction/complex_content_extraction/__pycache__/complex_analysis.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/complex_content_extraction/__pycache__/complex_analysis.cpython-36.pyc -------------------------------------------------------------------------------- /fact_triple_extraction/complex_content_extraction/__pycache__/complex_extrate.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/complex_content_extraction/__pycache__/complex_extrate.cpython-36.pyc -------------------------------------------------------------------------------- /fact_triple_extraction/complex_content_extraction/__pycache__/get_content.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/complex_content_extraction/__pycache__/get_content.cpython-36.pyc -------------------------------------------------------------------------------- /fact_triple_extraction/complex_content_extraction/complex_analysis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/complex_content_extraction/complex_analysis.py -------------------------------------------------------------------------------- /fact_triple_extraction/complex_content_extraction/complex_extrate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/complex_content_extraction/complex_extrate.py -------------------------------------------------------------------------------- /fact_triple_extraction/complex_content_extraction/complex_relation_process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/complex_content_extraction/complex_relation_process.py -------------------------------------------------------------------------------- /fact_triple_extraction/complex_content_extraction/get_content.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/complex_content_extraction/get_content.py -------------------------------------------------------------------------------- /fact_triple_extraction/forbid_relation_extract/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fact_triple_extraction/forbid_relation_extract/forbid_relation_extraction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/forbid_relation_extract/forbid_relation_extraction.py -------------------------------------------------------------------------------- /fact_triple_extraction/punishment_extract/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fact_triple_extraction/punishment_extract/violate_punishment_extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/punishment_extract/violate_punishment_extract.py -------------------------------------------------------------------------------- /fact_triple_extraction/response_to_explain/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fact_triple_extraction/response_to_explain/responsible_to_explain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/response_to_explain/responsible_to_explain.py -------------------------------------------------------------------------------- /fact_triple_extraction/response_to_explain/single_relation_subject_merge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/response_to_explain/single_relation_subject_merge.py -------------------------------------------------------------------------------- /fact_triple_extraction/scope_of_application_extraction/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fact_triple_extraction/scope_of_application_extraction/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/scope_of_application_extraction/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /fact_triple_extraction/scope_of_application_extraction/__pycache__/scope_of_application_extraction.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/scope_of_application_extraction/__pycache__/scope_of_application_extraction.cpython-36.pyc -------------------------------------------------------------------------------- /fact_triple_extraction/scope_of_application_extraction/scope_of_application_extraction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/scope_of_application_extraction/scope_of_application_extraction.py -------------------------------------------------------------------------------- /fact_triple_extraction/single_content_extraction/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fact_triple_extraction/single_content_extraction/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/single_content_extraction/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /fact_triple_extraction/single_content_extraction/__pycache__/get_single_content.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/single_content_extraction/__pycache__/get_single_content.cpython-36.pyc -------------------------------------------------------------------------------- /fact_triple_extraction/single_content_extraction/get_single_content.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/single_content_extraction/get_single_content.py -------------------------------------------------------------------------------- /fact_triple_extraction/single_content_extraction/single_analysis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/single_content_extraction/single_analysis.py -------------------------------------------------------------------------------- /fact_triple_extraction/single_content_extraction/single_extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/single_content_extraction/single_extract.py -------------------------------------------------------------------------------- /fact_triple_extraction/single_content_extraction/single_relation_process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/single_content_extraction/single_relation_process.py -------------------------------------------------------------------------------- /fact_triple_extraction/single_content_extraction/write_single_analysis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/single_content_extraction/write_single_analysis.py -------------------------------------------------------------------------------- /fact_triple_extraction/triple_extraction_example/__init__.py: -------------------------------------------------------------------------------- 1 | # github项目,文本中三元组关系,结果不准确 2 | -------------------------------------------------------------------------------- /fact_triple_extraction/triple_extraction_example/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/triple_extraction_example/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /fact_triple_extraction/triple_extraction_example/__pycache__/fact_triple_extraction.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/triple_extraction_example/__pycache__/fact_triple_extraction.cpython-36.pyc -------------------------------------------------------------------------------- /fact_triple_extraction/triple_extraction_example/fact_triple_extraction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/triple_extraction_example/fact_triple_extraction.py -------------------------------------------------------------------------------- /fact_triple_extraction/triple_extraction_example/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/triple_extraction_example/input.txt -------------------------------------------------------------------------------- /fact_triple_extraction/triple_extraction_example/law_extraction_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/triple_extraction_example/law_extraction_test.py -------------------------------------------------------------------------------- /fact_triple_extraction/triple_extraction_example/output.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fact_triple_extraction/xf_ltp_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/xf_ltp_api.py -------------------------------------------------------------------------------- /fact_triple_extraction/xunfei_graphviz.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/fact_triple_extraction/xunfei_graphviz.py -------------------------------------------------------------------------------- /flask_project/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /flask_project/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/flask_project/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /flask_project/__pycache__/drawInfo.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/flask_project/__pycache__/drawInfo.cpython-36.pyc -------------------------------------------------------------------------------- /flask_project/__pycache__/questionAnswer.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/flask_project/__pycache__/questionAnswer.cpython-36.pyc -------------------------------------------------------------------------------- /flask_project/__pycache__/search.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/flask_project/__pycache__/search.cpython-36.pyc -------------------------------------------------------------------------------- /flask_project/drawInfo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/flask_project/drawInfo.py -------------------------------------------------------------------------------- /flask_project/flask_start.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/flask_project/flask_start.py -------------------------------------------------------------------------------- /flask_project/questionAnswer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/flask_project/questionAnswer.py -------------------------------------------------------------------------------- /flask_project/search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/flask_project/search.py -------------------------------------------------------------------------------- /knowledge_graph/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /knowledge_graph/basic_kg_process/__init__.py: -------------------------------------------------------------------------------- 1 | # 为构建基础图谱做准备 2 | # 主要是法律法规归属地标准化对齐、“章、条、款”的分离等 3 | -------------------------------------------------------------------------------- /knowledge_graph/basic_kg_process/key_words_extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/knowledge_graph/basic_kg_process/key_words_extract.py -------------------------------------------------------------------------------- /knowledge_graph/basic_kg_process/law_process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/knowledge_graph/basic_kg_process/law_process.py -------------------------------------------------------------------------------- /knowledge_graph/basic_kg_process/sentence_process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/knowledge_graph/basic_kg_process/sentence_process.py -------------------------------------------------------------------------------- /nsq_test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nsq_test/task.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/nsq_test/task.py -------------------------------------------------------------------------------- /question_template/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /question_template/ner_tag_generate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/question_template/ner_tag_generate.py -------------------------------------------------------------------------------- /question_template/template_generate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/question_template/template_generate.py -------------------------------------------------------------------------------- /relation_extract_based_collection/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /relation_extract_based_collection/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_extract_based_collection/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /relation_extract_based_collection/__pycache__/relation_extract.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_extract_based_collection/__pycache__/relation_extract.cpython-36.pyc -------------------------------------------------------------------------------- /relation_extract_based_collection/accord_relation_extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_extract_based_collection/accord_relation_extract.py -------------------------------------------------------------------------------- /relation_extract_based_collection/aim_ralation_extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_extract_based_collection/aim_ralation_extract.py -------------------------------------------------------------------------------- /relation_extract_based_collection/application_scope_relation_extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_extract_based_collection/application_scope_relation_extract.py -------------------------------------------------------------------------------- /relation_extract_based_collection/contain_relation_extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_extract_based_collection/contain_relation_extract.py -------------------------------------------------------------------------------- /relation_extract_based_collection/define_relation_extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_extract_based_collection/define_relation_extract.py -------------------------------------------------------------------------------- /relation_extract_based_collection/duty_relation_extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_extract_based_collection/duty_relation_extract.py -------------------------------------------------------------------------------- /relation_extract_based_collection/forbid_relation_extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_extract_based_collection/forbid_relation_extract.py -------------------------------------------------------------------------------- /relation_extract_based_collection/relation_extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_extract_based_collection/relation_extract.py -------------------------------------------------------------------------------- /relation_extract_based_collection/right_relation_extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_extract_based_collection/right_relation_extract.py -------------------------------------------------------------------------------- /relation_extract_based_collection/wash_law.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_extract_based_collection/wash_law.py -------------------------------------------------------------------------------- /relation_wash/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /relation_wash/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_wash/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /relation_wash/__pycache__/insert_new_subject.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_wash/__pycache__/insert_new_subject.cpython-36.pyc -------------------------------------------------------------------------------- /relation_wash/insert_new_subject.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_wash/insert_new_subject.py -------------------------------------------------------------------------------- /relation_wash/subject_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_wash/subject_type.py -------------------------------------------------------------------------------- /relation_wash/wash_relation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/relation_wash/wash_relation.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/requirements.txt -------------------------------------------------------------------------------- /sentences/__init__.py: -------------------------------------------------------------------------------- 1 | # 对句子的简单处理,目前基本没用 2 | -------------------------------------------------------------------------------- /sentences/classify_parser/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/sentences/classify_parser/__init__.py -------------------------------------------------------------------------------- /sentences/classify_parser/environment_protection_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/sentences/classify_parser/environment_protection_parser.py -------------------------------------------------------------------------------- /sentences/classify_parser/forest_fire_prevention_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/sentences/classify_parser/forest_fire_prevention_parser.py -------------------------------------------------------------------------------- /sentences/classify_parser/forest_park_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/sentences/classify_parser/forest_park_parser.py -------------------------------------------------------------------------------- /sentences/classify_parser/greening_regulations_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/sentences/classify_parser/greening_regulations_parser.py -------------------------------------------------------------------------------- /sentences/classify_parser/science_spot_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/sentences/classify_parser/science_spot_parser.py -------------------------------------------------------------------------------- /sentences/classify_parser/soil_and_water_conservation_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/sentences/classify_parser/soil_and_water_conservation_parser.py -------------------------------------------------------------------------------- /sentences/classify_parser/trees_and_seeds_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/sentences/classify_parser/trees_and_seeds_parser.py -------------------------------------------------------------------------------- /sentences/classify_parser/wetland_law_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/sentences/classify_parser/wetland_law_parser.py -------------------------------------------------------------------------------- /sentences/classify_parser/wild_animals_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/sentences/classify_parser/wild_animals_parser.py -------------------------------------------------------------------------------- /sentences/level_parser/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sentences/level_parser/content_level_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/sentences/level_parser/content_level_parser.py -------------------------------------------------------------------------------- /sentences/sentences_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/sentences/sentences_parser.py -------------------------------------------------------------------------------- /syntactic_analysis/Digraph.gv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/syntactic_analysis/Digraph.gv -------------------------------------------------------------------------------- /syntactic_analysis/Digraph.gv.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/syntactic_analysis/Digraph.gv.pdf -------------------------------------------------------------------------------- /syntactic_analysis/__init__.py: -------------------------------------------------------------------------------- 1 | # pyltp依存语法分析测试,并利用graphviz、networks等工具包可视化 2 | -------------------------------------------------------------------------------- /syntactic_analysis/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/syntactic_analysis/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /syntactic_analysis/dependent_syntactic_analysis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/syntactic_analysis/dependent_syntactic_analysis.py -------------------------------------------------------------------------------- /syntactic_analysis/graphviz_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/syntactic_analysis/graphviz_test.py -------------------------------------------------------------------------------- /syntactic_analysis/sentence_extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/syntactic_analysis/sentence_extract.py -------------------------------------------------------------------------------- /syntactic_analysis/syntactic_analysis_core.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/syntactic_analysis/syntactic_analysis_core.py -------------------------------------------------------------------------------- /template_match/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /template_match/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/template_match/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /template_match/__pycache__/tf_idf.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/template_match/__pycache__/tf_idf.cpython-36.pyc -------------------------------------------------------------------------------- /template_match/tf_idf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/template_match/tf_idf.py -------------------------------------------------------------------------------- /time_control_using_thread/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /time_control_using_thread/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/time_control_using_thread/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /time_control_using_thread/__pycache__/timeout_control.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/time_control_using_thread/__pycache__/timeout_control.cpython-36.pyc -------------------------------------------------------------------------------- /time_control_using_thread/timeout_control.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/time_control_using_thread/timeout_control.py -------------------------------------------------------------------------------- /word2vec/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /word2vec/collection_expand.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/word2vec/collection_expand.py -------------------------------------------------------------------------------- /word2vec/init_relation_collection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/word2vec/init_relation_collection.py -------------------------------------------------------------------------------- /word2vec/sentence_process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17680329677/Forestry_LAW/HEAD/word2vec/sentence_process.py --------------------------------------------------------------------------------