diff --git a/.gitignore b/.gitignore
index 7e25564..ee6b297 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@ cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
+config.py
\ No newline at end of file
diff --git a/.idea/Medical-nlp.iml b/.idea/Medical-nlp.iml
index 57930dc..da1cb94 100644
--- a/.idea/Medical-nlp.iml
+++ b/.idea/Medical-nlp.iml
@@ -2,11 +2,10 @@
-
+
-
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 760df97..72c0af0 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,64 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -69,157 +45,82 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
+
+
-
-
+
-
+
+
+
+
-
+
+
-
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
-
-
-
+
@@ -230,101 +131,37 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/__pycache__/config.cpython-37.pyc b/__pycache__/config.cpython-37.pyc
new file mode 100644
index 0000000..111e221
Binary files /dev/null and b/__pycache__/config.cpython-37.pyc differ
diff --git a/src/baidu.py b/src/baidu.py
new file mode 100644
index 0000000..8fea588
--- /dev/null
+++ b/src/baidu.py
@@ -0,0 +1,22 @@
+from aip import AipNlp
+from config import Config
+
+
+def baidu_sim(text1, text2):
+ """
+ 百度词语相似度
+ :param text1: 词语1
+ :param text2: 词语2
+ :return: 相似度
+ """
+ APP_ID = Config.APP_ID
+ API_KEY = Config.API_KEY
+ SECRET_KEY = Config.SECRET_KEY
+ # options = {}
+ # options["model"] = "CNN"
+ client = AipNlp(APP_ID, API_KEY, SECRET_KEY)
+ result = client.simnet(text1, text2)
+ if "score" in result:
+ return {"score": result['score']}
+ else:
+ return {"error": "error"}