Skip to content

Commit

Permalink
reduce unnecessary codes
Browse files Browse the repository at this point in the history
  • Loading branch information
hopple committed Feb 3, 2017
1 parent 44a3e7e commit 8dfcc96
Show file tree
Hide file tree
Showing 230 changed files with 773 additions and 44,369 deletions.
113 changes: 0 additions & 113 deletions Concept_Similarity.ipynb

This file was deleted.

197 changes: 0 additions & 197 deletions LICENSE

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ from collections import Counter
#query Tom Cruise DBpedia textual description
tom = EntityFeatures().features('http://dbpedia.org/resource/Tom_Cruise')
#extract common nouns from abstract
words = Extraction().extract_words_sent(tom['abstract'])
words = Extraction().extract_words_doc(tom['abstract'])
#lemmatize words to remove duplicates
words = list(set(lemmatization(words)))
#define a similarity metric
Expand All @@ -195,7 +195,7 @@ word_graph = SimGraph(words, wns.word_similarity)
word_scores = word_graph.page_rank()
words, scores =zip(*Counter(word_scores).most_common(10))
print words
(u'action', u'Picture', u'Performance', u'program', u'sport', u'number', u'film', u'series', u'role', u'credit')
(u'action', u'Picture', u'Performance', u'number', u'program', u'sport', u'film', u'role', u'series', u'credit')
```

------------------
Expand Down
2 changes: 1 addition & 1 deletion Word_Similarity.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"This notebook records the experiments I have done in the article of \"Computing Semantic Similarity of Concepts in Knowledge Graphs\" published in IEEE Transactions of Data and Knowledge Engineering. If someone is intrested in reproducing the experiments, one can download the Sematch software and use this notebook for reference."
"This notebook records the experiments I have done in the article of \"Computing Semantic Similarity of Concepts in Knowledge Graphs\" published in IEEE Transactions of Knowledge and Data Engineering. If someone is intrested in reproducing the experiments, one can download the Sematch software and use this notebook for reference."
]
},
{
Expand Down
9 changes: 5 additions & 4 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ site_author: Ganggao Zhu

pages:
- Home: index.md
- Word similarity: word_similarity.md
- Concept similarity: concept_similarity.md
- Category Classification: category_classify.md
- Entity Search: entity_search.md
- Similarity: similarity.md
- Evaluation: evaluation.md
- NLP: nlp.md
- Application: application.md
- API: api.md
Empty file removed docs/sources/category_classify.md
Empty file.
Empty file removed docs/sources/concept_similarity.md
Empty file.
Empty file removed docs/sources/entity_search.md
Empty file.
Loading

0 comments on commit 8dfcc96

Please sign in to comment.