diff --git a/CSO-Classifier.ipynb b/CSO-Classifier.ipynb index e176a81..70ce273 100644 --- a/CSO-Classifier.ipynb +++ b/CSO-Classifier.ipynb @@ -70,7 +70,7 @@ "metadata": {}, "outputs": [], "source": [ - "cc = CSOClassifier(explanation=True)\n", + "cc = CSOClassifier(explanation=True, get_weights=True)\n", "\n", "result = cc.run(paper)" ] diff --git a/CSO-Classifier.py b/CSO-Classifier.py index aeb82c8..823eff0 100644 --- a/CSO-Classifier.py +++ b/CSO-Classifier.py @@ -46,7 +46,7 @@ # In[Run Classifier] -cc = CSOClassifier(explanation=True) +cc = CSOClassifier(explanation=True, get_weights=True) result = cc.run(paper) diff --git a/output.json b/output.json index 16fa94e..410bb8c 100644 --- a/output.json +++ b/output.json @@ -1,76 +1,73 @@ { "syntactic": [ - "data mining", - "micro-blog", - "social networks", - "data privacy", - "sensitive informations", - "anonymity", + "real-world networks", "anonymization", "network topology", + "data privacy", + "social networks", + "privacy", "twitter", - "real-world networks", "graph theory", "online social networks", - "privacy" - ], - "semantic": [ + "anonymity", "data mining", "micro-blog", - "privacy", - "social networks", - "data privacy", - "anonymity", + "sensitive informations" + ], + "semantic": [ "anonymization", "network topology", + "topology", + "data privacy", + "social networks", + "privacy", "twitter", "graph theory", "online social networks", - "topology" + "anonymity", + "data mining", + "micro-blog" ], "union": [ - "data mining", - "micro-blog", - "privacy", - "social networks", - "data privacy", - "sensitive informations", - "anonymity", + "real-world networks", "anonymization", "network topology", + "topology", + "data privacy", + "social networks", + "privacy", "twitter", - "real-world networks", "graph theory", "online social networks", - "topology" + "anonymity", + "data mining", + "micro-blog", + "sensitive informations" ], "enhanced": [ - "computer science", - "computer security", - "world wide web", - "access control", - "network security", - "authentication", + "complex networks", "privacy preserving", "computer networks", + "world wide web", + "computer security", "social media", - "complex networks", "theoretical computer science", - "online systems" + "online systems", + "authentication", + "network security", + "computer science", + "access control" ], "explanation": { "social networks": [ - "social-network", + "real-world networks", "social networks", - "social networking", - "microblogging service", "twitter", - "real-world networks", + "social-network", "online social networks", - "microblogging", "social network", - "twitter graph", - "anonymous twitter" + "microblogging", + "social networking" ], "online social networks": [ "online social networks", @@ -87,95 +84,80 @@ ], "privacy": [ "anonymous", - "data privacy", "anonymity", - "privacy", - "sensitive information" + "sensitive information", + "data privacy", + "privacy" ], "anonymization": [ "anonymization" ], "anonymity": [ - "anonymity", - "anonymous" + "anonymous", + "anonymity" ], "real-world networks": [ "real-world networks" ], "twitter": [ - "microblogging service", - "microblogging", "twitter graph", "anonymous twitter", + "microblogging", + "microblogging service", "twitter" ], "micro-blog": [ - "microblogging service", - "microblogging", "twitter graph", "anonymous twitter", + "microblogging", + "microblogging service", "twitter" ], "network topology": [ - "topology", - "network topology" + "network topology", + "topology" ], "data privacy": [ - "privacy", - "data privacy" + "data privacy", + "privacy" ], "graph theory": [ "graph theory" ], "topology": [ - "topology", - "network topology" + "network topology", + "topology" ], - "computer science": [ - "data mining", - "mining", - "data-mining" + "complex networks": [ + "real-world networks" ], - "computer security": [ - "anonymity", - "privacy", - "data privacy" + "privacy preserving": [ + "anonymization" + ], + "computer networks": [ + "network topology", + "topology" ], "world wide web": [ + "real-world networks", + "social networks", + "twitter", "social-network", "online social networks", - "social networks", "social network", + "microblogging", "social networking" ], - "access control": [ - "sensitive information" - ], - "network security": [ + "computer security": [ + "anonymous", "anonymity", "sensitive information", - "anonymous" - ], - "authentication": [ - "anonymity", - "anonymous" - ], - "privacy preserving": [ - "anonymization" - ], - "computer networks": [ - "topology", - "network topology" + "data privacy", + "privacy" ], "social media": [ - "twitter", - "microblogging service", "microblogging", - "twitter graph", - "anonymous twitter" - ], - "complex networks": [ - "real-world networks" + "twitter" ], "theoretical computer science": [ "graph theory" @@ -184,6 +166,52 @@ "online social networks", "social networks", "social network" + ], + "authentication": [ + "anonymous", + "anonymity" + ], + "network security": [ + "anonymous", + "anonymity", + "sensitive information" + ], + "computer science": [ + "data mining", + "mining", + "data-mining" + ], + "access control": [ + "sensitive information" ] + }, + "syntactic_weights": { + "social networks": 1.0, + "online social networks": 1.0, + "sensitive informations": 0.9545454545454546, + "data mining": 1.0, + "privacy": 1.0, + "anonymization": 1.0, + "anonymity": 1.0, + "real-world networks": 1.0, + "twitter": 1.0, + "micro-blog": 1.0, + "network topology": 1.0, + "data privacy": 1.0, + "graph theory": 1.0 + }, + "semantic_weights": { + "social networks": 1.0, + "online social networks": 1.0, + "data mining": 1.0, + "privacy": 1.0, + "data privacy": 1.0, + "anonymization": 1.0, + "anonymity": 1.0, + "twitter": 1.0, + "micro-blog": 1.0, + "topology": 1.0, + "network topology": 1.0, + "graph theory": 1.0 } } \ No newline at end of file