Skip to content

Commit

Permalink
fix the make copy error
Browse files Browse the repository at this point in the history
  • Loading branch information
chen0040 committed Jun 2, 2017
1 parent 15805e0 commit f50bd45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/github/chen0040/plsa/pLSA.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public pLSA makeCopy() {
public void copy(pLSA that){
this.probability_topic_given_doc_and_word = that.probability_topic_given_doc_and_word.makeCopy();
this.probability_topic = that.probability_topic.makeCopy();
this.probability_doc_given_topic = probability_doc_given_topic.makeCopy();
this.probability_doc_given_topic = that.probability_doc_given_topic.makeCopy();
this.probability_word_given_topic = that.probability_word_given_topic.makeCopy();
this.topicCount = that.topicCount;
this.docCount = that.docCount;
Expand Down
4 changes: 4 additions & 0 deletions src/test/java/com/github/chen0040/plsa/pLSAUnitTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,9 @@ public void testPLSA() throws IOException {
}
System.out.println();
}

// test clone
pLSA clone = method.makeCopy();

}
}

0 comments on commit f50bd45

Please sign in to comment.