team4alfanous team mailing list archive
-
team4alfanous team
-
Mailing list archive
-
Message #00177
[Branch ~team4alfanous/alfanous/alfanous-git] Rev 363: fix some bugs in tests examples
------------------------------------------------------------
revno: 363
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Thu 2012-10-04 23:11:55 +0100
message:
fix some bugs in tests examples
modified:
src/alfanous-tests/QueryProcessing.py
src/alfanous-tests/Searching.py
src/alfanous-tests/TextProcessing.py
--
lp:alfanous
https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git
Your team Alfanous team is subscribed to branch lp:alfanous.
To unsubscribe from this branch go to https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git/+edit-subscription
=== modified file 'src/alfanous-tests/QueryProcessing.py'
--- src/alfanous-tests/QueryProcessing.py 2012-06-01 03:38:52 +0000
+++ src/alfanous-tests/QueryProcessing.py 2012-10-04 22:11:55 +0000
@@ -3,7 +3,7 @@
from alfanous.QueryProcessing import *
if __name__ == "__main__":
- D = QseDocIndex( "../../indexes/main/" )
+ D = QseDocIndex( "../alfanous/indexes/main/" )
QP = FuzzyQuranicParser( D.get_schema(), otherfields = ['subject'] )
print QP.parse( u"'لو كان البحر '" )
print QP.parse( u"\"عاصم\"" )
=== modified file 'src/alfanous-tests/Searching.py'
--- src/alfanous-tests/Searching.py 2012-06-01 03:38:52 +0000
+++ src/alfanous-tests/Searching.py 2012-10-04 22:11:55 +0000
@@ -3,7 +3,7 @@
from alfanous.Searching import *
if __name__ == "__main__":
- D = QseDocIndex( "../../indexes/main/" )
+ D = QseDocIndex( "../alfanous/indexes/main/" )
S = QSearcher( D, QuranicParser( D.get_schema() ) )
R = QReader( D )
=== modified file 'src/alfanous-tests/TextProcessing.py'
--- src/alfanous-tests/TextProcessing.py 2012-06-01 03:38:52 +0000
+++ src/alfanous-tests/TextProcessing.py 2012-10-04 22:11:55 +0000
@@ -9,12 +9,12 @@
text = ASF.normalize_all( text )
print text
- word1 = unicode_( "عَاصِمُ" )
- word2 = unicode_( "عَاصمُ" )
+ word1 = unicode_( u"عَاصِمُ" )
+ word2 = unicode_( u"عَاصمُ" )
l1 = word1.list_harakat()
l2 = word2.list_harakat()
- word3 = unicode_( "فاعل" )
- phrase = unicode_( "كانَ ذئبا" )
+ word3 = unicode_( u"فاعل" )
+ phrase = unicode_( u"كانَ" )
print word3.apply_harakat_list( l1 )
print l1, "\n", l2, "\n", unicode_.compare_harakat( l1, l2 )
print word1.shakl_compare( word1, word2 )