-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#14 automated testing of corpus formats
git-svn-id: https://my-svn.assembla.com/svn/gensim/trunk@69 92d0401f-a546-4972-9173-107b360ed7e5
- Loading branch information
Showing
15 changed files
with
189 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
""" | ||
This package contains implementations of various streaming corpus I/O format. | ||
""" | ||
|
||
import corpora, dictionary, sources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
3 0:1.000000 1:1.000000 2:1.000000 | ||
6 2:1.000000 3:1.000000 4:1.000000 5:1.000000 6:1.000000 8:1.000000 | ||
4 1:1.000000 3:1.000000 4:1.000000 7:1.000000 | ||
3 0:1.000000 4:2.000000 7:1.000000 | ||
3 3:1.000000 5:1.000000 6:1.000000 | ||
1 9:1.000000 | ||
2 9:1.000000 10:1.000000 | ||
3 9:1.000000 10:1.000000 11:1.000000 | ||
3 8:1.000000 10:1.000000 11:1.000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
0 | ||
1 | ||
2 | ||
3 | ||
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
9 | ||
0 1 2 | ||
2 3 4 5 6 8 | ||
1 3 4 7 | ||
0 4 4 7 | ||
3 5 6 | ||
9 | ||
9 10 | ||
9 10 11 | ||
8 10 11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
%%matrixmarket matrix coordinate real general | ||
9 12 28 | ||
1 1 1.000000 | ||
1 2 1.000000 | ||
1 3 1.000000 | ||
2 3 1.000000 | ||
2 4 1.000000 | ||
2 5 1.000000 | ||
2 6 1.000000 | ||
2 7 1.000000 | ||
2 9 1.000000 | ||
3 2 1.000000 | ||
3 4 1.000000 | ||
3 5 1.000000 | ||
3 8 1.000000 | ||
4 1 1.000000 | ||
4 5 2.000000 | ||
4 8 1.000000 | ||
5 4 1.000000 | ||
5 6 1.000000 | ||
5 7 1.000000 | ||
6 10 1.000000 | ||
7 10 1.000000 | ||
7 11 1.000000 | ||
8 10 1.000000 | ||
8 11 1.000000 | ||
8 12 1.000000 | ||
9 9 1.000000 | ||
9 11 1.000000 | ||
9 12 1.000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# deerwester corpus stored in svmlight format | ||
0 0:1.000000 1:1.000000 2:1.000000 # the target class is always 0, as we are not interested in supervised learning | ||
0 2:1.000000 3:1.000000 4:1.000000 5:1.000000 6:1.000000 8:1.000000 | ||
0 1:1.000000 3:1.000000 4:1.000000 7:1.000000 | ||
0 0:1.000000 4:2.000000 7:1.000000 | ||
0 3:1.000000 5:1.000000 6:1.000000 | ||
0 9:1.000000 | ||
0 9:1.000000 10:1.000000 | ||
0 9:1.000000 10:1.000000 11:1.000000 | ||
0 8:1.000000 10:1.000000 11:1.000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters