Commit b3b033bf by Yolanda Nainggolan

add phrase search

parent 8f565798
...@@ -629,4 +629,274 @@ ...@@ -629,4 +629,274 @@
<LYRICS> i took my troubles down to madam ruth you know that gypsy with the gold capped tooth shes got a path down on thirtyfourth and vine sellin little bottles of love potion no 9 i told her that i was a flop with chicks ive been that way since nineteen fiftysix she looked at my palm and she made a magic sign she said what you need is love potion no 9 she bent down and turned around and gave me a wink she said im gonna make it up right here in the sink it smelled like turpentine and looked like indian ink i held my nose i closed my eyes i took a drink i didnt know if it was day or night i started kissin evry thing in sight but when i kissed a cop down at thirtyfourth and vine he broke my little bottle of love potion no 9 i held my nose i closed my eyes i took a drink i didnt know if it was day or night i started kissin evry thing in sight but when i kissed a cop down at thirtyfourth and vine he broke my little bottle of love potion no 9 love potion no 9 love potion no 9 love potion no 9 </LYRICS> <LYRICS> i took my troubles down to madam ruth you know that gypsy with the gold capped tooth shes got a path down on thirtyfourth and vine sellin little bottles of love potion no 9 i told her that i was a flop with chicks ive been that way since nineteen fiftysix she looked at my palm and she made a magic sign she said what you need is love potion no 9 she bent down and turned around and gave me a wink she said im gonna make it up right here in the sink it smelled like turpentine and looked like indian ink i held my nose i closed my eyes i took a drink i didnt know if it was day or night i started kissin evry thing in sight but when i kissed a cop down at thirtyfourth and vine he broke my little bottle of love potion no 9 i held my nose i closed my eyes i took a drink i didnt know if it was day or night i started kissin evry thing in sight but when i kissed a cop down at thirtyfourth and vine he broke my little bottle of love potion no 9 love potion no 9 love potion no 9 love potion no 9 </LYRICS>
<SOURCE> 3.0 </SOURCE> <SOURCE> 3.0 </SOURCE>
</DOC> </DOC>
<DOC>
<DOCNO> 71 </DOCNO>
<RANK> 71 </RANK>
<SONG> love her madly </SONG>
<ARTIST> the doors </ARTIST>
<YEAR> 1971 </YEAR>
<LYRICS> dont you love her madly dont you need her badly dont you love her ways tell me what you say dont you love her madly wanna be her daddydont you love her face dont you love her as shes walkin out the door like she did one thousand times beforedont you love her ways tell me what you say dont you love her as shes walkin out the doorall your love all your love all your love all your love all your love is gone so sing a lonely song of a deep blue dream seven horses seem to be on the markyea dont you love her dont you love her as shes walkin out the doorall your love all your love all your love yea all your love is gone so sing a lonely song of a deep blue dream seven horses seem to be on the markdont you love her madly dont you love her madly dont you love her madly </LYRICS>
<SOURCE> 1.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 72 </DOCNO>
<RANK> 72 </RANK>
<SONG> baby dont go </SONG>
<ARTIST> sonny cher </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> sonny cher baby dont go pretty baby please dont go i never had a mother i hardly knew my dad ive been in town for eighteen years youre the only boy ive had i cant stay maybe ill be back some day baby dont go pretty baby please dont go i love you so pretty baby please dont go i never had no money i bought at the second hand store the way this old town laughs at me i just cant take it no more i cant stay im gonna be a lady some day baby dont go pretty baby please dont go i love you so pretty baby please dont go when i get to the city my tears will all be dry my eyes will look so pretty no ones gonna know i cried yes im goin away maybe ill be back some day baby dont go maybe ill be back some day baby dont go </LYRICS>
<SOURCE> 5.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 73 </DOCNO>
<RANK> 73 </RANK>
<SONG> it aint me babe </SONG>
<ARTIST> the turtles </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> go away from my window leave at your own chosen speed im not the one you want babe im not the one you needyou say youre lookin for someone whos never weak but always strong to protect you an defend you whether you are right or wrongsomeone to open each and every door but it aint me babe no no no it aint me babe well it aint me youre lookin for babego lightly from the ledge babe go lightly on the ground im not the one you want babe ill only lead your downyou say youre lookin for someone wholl promise never to part someone to close his eyes to you someone to close his heartsomeone who will die for you an more but it aint me babe no no no it aint me babe well it aint me youre lookin for babe no it aint me youre lookin for babei said no no no it aint me babe i said no no no it aint me babe i said no no no it aint me babe i said no no no it aint me babe </LYRICS>
<SOURCE> 1.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 74 </DOCNO>
<RANK> 74 </RANK>
<SONG> tell her no </SONG>
<ARTIST> the zombies </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> and if she should tell you come closer and if she tempts you with her charmstell her no no no no no no no no no no no no no no no no no no no no no dont hurt me now for her love belongs to meand if she should tell you come closer and if she tempts you with her charmstell her no no no no no no no no no no no no no no no no dont take her love for your arms no no no no no dont hurt me now for her love belongs to mei know shes the kind of girl whod throw my love away but i still love her so dont hurt me now dont hurt me nowif she tells you i love you just remember she said that to metell her no no no no no no no no no no no no no no no no dont take her love from my arms no no no no no dont leave her now for her love belongs to me </LYRICS>
<SOURCE> 1.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 75 </DOCNO>
<RANK> 75 </RANK>
<SONG> i go to pieces </SONG>
<ARTIST> peter and gordon </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> peter miscellaneous i go to pieces i go to pieces del shannon d shannon when i see her comin down the street i get so shaky and i feel so weak i tell my eyes look the other way but they dont seem to hear a word i say and i go to pieces and i wanna hide go to pieces and i almost die everytime my baby passes by i tell my arms theyll hold someone new another love that will be true but they dont listen they dont seem to care they reach for her but shes not there and i go to pieces and i wanna hide go to pieces and i almost die everytime my baby passes by i remember what she said when she said goodbye baby well meet again soon maybe but until we do all my best to you im so lonely i think about her only i go to places we used to go but i know shell never show she hurt me so much inside now i hope shes satisfied and i go to pieces and i wanna hide go to pieces and i almost die everytime my baby passes by go to pieces and i cry everytime my baby passes by go to pieces and i cry </LYRICS>
<SOURCE> 3.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 76 </DOCNO>
<RANK> 76 </RANK>
<SONG> red roses for a blue lady </SONG>
<ARTIST> vic dana </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> vic dana miscellaneous red roses for a blue lady red roses for a blue lady artist vic dana peak billboard position 10 in 1965 words and music by sid tepper and roy bennett just edged out contemporary 11 hit by bert kaempfert soundly beat wayne newtons contemporary 23 version previously a 3 hit for vaughn monroe in 1949 i want some red roses for a blue lady mister florist take my order please we had a silly quarrel the other day i hope these pretty flowers chase her blues away i want some red roses for a blue lady send them to the sweetest gal in town and if they do the trick ill hurry back to pick your best white orchid for her wedding gown i want some red roses for a blue lady we had a silly quarrel the other day i hope these pretty flowers chase her blues away i want some red roses for a blue blue lady send them to the sweetest gal in town and if they do the trick ill hurry back to pick your best white orchid for her wedding gown your best white orchid for her wedding gown transcribed by ronald e hontz ronhontzworldnetattnet </LYRICS>
<SOURCE> 3.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 77 </DOCNO>
<RANK> 77 </RANK>
<SONG> dont just stand there </SONG>
<ARTIST> patty duke </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> please dont just stand there come and kiss me like before please dont just stand there looking down at the floor if something is wrong give me just one little sign if theres someone else please tell me tell me what what what whats on your mind once when wed meet youd run to hold me tight life was so sweet until tonight please dont just stand there get it over if were through please dont just stand there while my heart breaks in two knowing i care how can you be so unkind please stop hurting me and help me tell me what what what whats on your mind if its a game i dont want to play it and if its goodbye why cant you just say it why make me cry like you do how can you be so unkind please start loving me or leave me tell me what what what whats on your mind dont just stand there tell me what what what whats on your mind dont just stand there tell me what what what whats on your mind dont just stand there tell me what what what whats on your mind </LYRICS>
<SOURCE> 5.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 78 </DOCNO>
<RANK> 78 </RANK>
<SONG> the tracks of my tears </SONG>
<ARTIST> the miracles </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> people say im the life of the party cause i tell a joke or two although i might be laughing loud and hearty deep inside im blue so take a good look at my face you know my smile looks out of place if you look closer its easy to trace the tracks of my tears i need you need you since you left me if you see me with another girl looking like im having fun although she may be cute shes just a substitute cause youre the permanent one so take a good look at my face you know my smile looks out of place if you look closer its easy to trace the tracks of my tears outside im masquerading inside my hope is fading im just a clown since you put me down my smile is my make up i wear since my breakup with you baby take a good look at my face you know my smile looks out of place if you look closer its easy to trace the tracks of my tears </LYRICS>
<SOURCE> 3.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 79 </DOCNO>
<RANK> 79 </RANK>
<SONG> too many rivers </SONG>
<ARTIST> brenda lee </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> i wish i could come back to you dear cause i know that you want me too but too much waters run under that old bridge theres too many rivers between me and youtheres too many rivers to cross dear too many dreams have been lost and theres too many long nights that ive turned and tossed theres too many rivers to crossnow dont think for a moment i blame only you we both peeled the fruit on the vine and when you try to put love back together theres always a few little pieces that you cant findyes theres too many rivers to cross dear and theres too many dreams that have been lost aah theres too many long nights that ive turned and ive tossed theres too many rivers to cross </LYRICS>
<SOURCE> 1.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 80 </DOCNO>
<RANK> 80 </RANK>
<SONG> i like it like that </SONG>
<ARTIST> the dave clark five </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> come on come on let me show you where its at ah come on come on let me show you where its at wow come on come on let me show you where its at i said the name of the place is i like it like that come on come on let me show you where its at ah come on come on let me show you where its at whoa i wanna show you come on let me show you where its at the name of the place is i like it like that they got a little place adown the track the name of the place is i like it like that you take sally and ill take sue and were gonna rock away all of our blues come on come on let me show you where its at oh come on come on let me show you where its at ah come on come on let me show you where its at the name of the place is i like it like that the last time i was down they lost my shoes they had some cat shoutin the blues the people was yellin and shoutin for more and all they kept sayin wasa go man go come on come on let me show you where its at ah come on come on let me show you where its at oh i wanna show you come on let me show you where its at i said the name of the place is i like it like that come on come on let me show you where its at ah come on come on let me show you where its at oh come on come on let me show you where its at the name of the place is i like it like that </LYRICS>
<SOURCE> 3.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 81 </DOCNO>
<RANK> 81 </RANK>
<SONG> little things </SONG>
<ARTIST> bobby goldsboro </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> little things that you do make me glad im in love with you little things that you say make me glad that i feel this way the way you smile the way you hold my hand and when im down you always understand you know i love those little things i hear that you say when theres no one near little things that you do let me know that your love is true when we walk you like to hold my hand and when we talk you tell me im your man you know i love those little things that i knew the little things you whispered in my ear i know there aint nobody else like you no one could do the little things you do little things that you do make me glad im in love with you little things that you say make me glad that i feel this way when we walk you like to hold my hand and when we talk you tell me im your man you know i love those little things that i knew the little things you whispered in my ear i know there aint nobody else like you </LYRICS>
<SOURCE> 3.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 82 </DOCNO>
<RANK> 82 </RANK>
<SONG> true love ways </SONG>
<ARTIST> peter and gordon </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> peter miscellaneous true love ways true love ways buddy holly yes you know why why you and i will by and by know true love ways sometimes well sigh sometimes well cry and well know why just you and i know true love ways throughout the days our true love ways will bring us joy to share with those who really care sometimes well sigh sometimes well cry and well know why just you and i know true love ways </LYRICS>
<SOURCE> 3.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 83 </DOCNO>
<RANK> 83 </RANK>
<SONG> its the same old song </SONG>
<ARTIST> four tops </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> youre sweet as a honey bee but like a honey bee stings youve gone and left my heart in pain all you left is our favorite song the one we danced to all night long it used to bring sweet memories of a tender love that used to benow its the same old song but with a different meaning since you been gone its the same old song but with a different meaning since you been gone i oh isentimental fool am i to hear a old love song and wanna cry cause the melody keeps haunting me reminding me how in love we used to be keep hearing the part that used to touch my heart saying together forever breaking up neverits the same old song but with a different meaning since you been gone but its the same old song but with a different meaning since you been goneprecious memories keep a lingering on every time i hear our favorite song now youre gone left this emptiness i only reminisce the happiness we spent we used to dance to the music make romance through the musicnow its the same old song but with a different meaning since you been gone its the same old song but with a different meaning since you been gone i oh iits the same old song but with a different meaning since you been gone its the same old song </LYRICS>
<SOURCE> 1.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 84 </DOCNO>
<RANK> 84 </RANK>
<SONG> use me </SONG>
<ARTIST> bill withers </ARTIST>
<YEAR> 1972 </YEAR>
<LYRICS> my friends feel its their appointed duty they keep trying to tell me here all you want to do is use me but my answer yeah to all that use me stuffi i i is that i wanna spread the news that if it feels this good getting used oh you just keep on using me until you use me up until you use me upmy brother sit me right down and he talked to me he told me that i ought not to let you just walk on me and im sure he meant well yeah but when our talk was throughi i i said brother if you only knew youd wish that you were in my shoes you just keep on using me until you use me up until you use me upoh sometimes yeah its true you really do abuse me you get me in a crowd of high class people and then you act real rude to me but oh baby baby baby baby when you love me i cant get enoughi and i wanna spread the news that if it feels this good getting used oh you just keep on using me until you use me up until you use me uptalking about you using me but it all depends on what you do it aint too bad the way youre using me cause i sure am using you to do the things you do </LYRICS>
<SOURCE> 1.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 85 </DOCNO>
<RANK> 85 </RANK>
<SONG> hold what youve got </SONG>
<ARTIST> joe tex </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> youd better hold on hold on to what youve got youd better hold on hold on to what youve got cause if you think nobody wants it just throw it away and you will see someone will have it before you can count one two three yes they will yes they will listen fellows you know its not all the time that a man can have a good woman a women he can call his very own a woman who will stay right there at home and mind the children while hes gone to work a woman who will have his dinner cooked when he comes home where some men make mistakes is when they go out and stay because they feel that no other man wants his woman but him but listen if you think no other man wants her just throw her away and you will see some men will have her before you can count one two three yes he will yes he willlisten girls this goes for you too because you know ive seen so many women whove had so many good men in life men who would stand by them through thick and thin men whod go to work everyday and bring home their hard earned pay men whod give their woman anything that their little hearts desired where some women make mistakes is when their men go out and let em play they would stay because they felt that no other woman wanted him but her listen if you think no other woman wants him just pitch him out in the street and you will see some woman will have your man before you can count one two three yes she will yes she will </LYRICS>
<SOURCE> 1.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 86 </DOCNO>
<RANK> 86 </RANK>
<SONG> we gotta get out of this place </SONG>
<ARTIST> the animals </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> midnight finds me cryin day time finds me cryin too ive got to get out of town this whole city just brings me down yeahgotta get away gotta get away gotta get awayi made a promise to you such a long time ago now baby now baby now baby now baby its time to make it come true yeah come through yeah come true yeah come through yeah come true yeahin this dirty old part of the city where the sun refuse to shine people tell me there aint no use in me trying no little girl youre so young and youre so pretty and one thing i know is true your going to be dead before your time is duesee my daddy in bed dying watched his hair been turning gray i know hes been working and slaving working and slaving slaving and working working yeah work yeah yeah yeah yeahwe gotta get out of this place if its the last thing we ever do we gotta get out of this place theres a better life dont you know dont you know man dont you know dont you know dont you knowwell well well time brings about a change time on the clock on the wall brings about a change yeah all of his life hes been slaving all of the life hes been workingfor what for what for what for what give it up give it up give it up give it up yeahsee my daddy in bed dying watched his hair been turning gray i know hes been working and slaving and slaving and working and working and slaving working yeah work yeah yeah yeah yeahwe gotta get out of this place if its the last thing we ever do we gotta get out of this place theres a better life dont you know dont you know dont you knowtake me take me take mewe gotta get out of this place if its the last thing we ever do we just gotta get out of this place theres a better life theres a better world theres a better way dont you know dont you know dont you knowwe gotta get out of this place if its the last thing we ever do we gotta get out of this place theres a better world dont you know dont you know dont you know i want to get you out of this placeout of this place out of this place yeah yeah yeah </LYRICS>
<SOURCE> 1.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 87 </DOCNO>
<RANK> 87 </RANK>
<SONG> laugh laugh </SONG>
<ARTIST> the beau brummels </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> i hate to say it but i told you so dont mind my preachin to you i said dont trust em baby now you know you dont learn evrything there is to know in school wouldnt believe me when i gave advice i said that he was a tease if you want help you better ask me nice so be sincere convince me with a pretty please laugh laugh i thought id die it seemed so funny to me laugh laugh you met a guy who taught you how it feels to be lonely oh so lonely dont think im bein funny when i say you got just what you deserve i cant help feeling you found out today you thought you would you could you had a lot of nerve wont say im sorry for the things i said im glad he packed up to go you kept on braggin he was yours instead found you dont know evrything there is to know laugh laugh i thought id die it seemed so funny to me laugh laugh you met a guy who taught you how it feels to be lonely oh so lonely before i go i got to say one thing dont close your ears to me take my advice and you find out that he is just another guy wholl cause you misery dont say you cant get any boy to call dont be so smug or else youll find you cant get any boy atall youll wind up an old lady sittin on the shelf laugh laugh i thought id die it seemed so funny to me laugh laugh you met a guy who taught you how it feels to be lonely oh so lonely </LYRICS>
<SOURCE> 3.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 88 </DOCNO>
<RANK> 88 </RANK>
<SONG> the last time </SONG>
<ARTIST> the rolling stones </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> well i told you once and i told you twice but ya never listen to my advice you dont try very hard to please me with what you know it should be easy well this could be the last time this could be the last time maybe the last time i dont know oh no oh no well im sorry girl but i cant stay feelin like i do today its too much pain and too much sorrow guess ill feel the same tomorrow well this could be the last time this could be the last time maybe the last time i dont know oh no oh no well i told you once and i told you twice that someone will have to pay the price but heres a chance to change your mind cuz ill be gone a long long time well this could be the last time this could be the last time maybe the last time i dont know oh no oh no well this could be the last time </LYRICS>
<SOURCE> 3.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 89 </DOCNO>
<RANK> 89 </RANK>
<SONG> do you believe in magic </SONG>
<ARTIST> the lovin spoonful </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> do you believe in magic in a young girls heart how the music can free her whenever it starts and its magic if the music is groovy it makes you feel happy like an oldtime movie ill tell you about the magic and itll free your soul but its like trying to tell a stranger bout rock and roll if you believe in magic dont bother to choose if its jug band music or rhythm and blues just go and listen itll start with a smile it wont wipe off your face no matter how hard you try your feet start tapping and you cant seem to find how you got there so just blow your mind if you believe in magic come along with me well dance until morning til theres just you and me and maybe if the music is right ill meet you tomorrow sort of late at night and well go dancing baby then youll see how the magics in the music and the musics in me yeah do you believe in magic yeah believe in the magic of a young girls soul believe in the magic of rock and roll believe in the magic that can set you free ohh talking bout magic do you believe like i believe do you believe in magic do you believe like i believe do you believe believer do you believe like i believe do you believe in magic fade </LYRICS>
<SOURCE> 3.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 90 </DOCNO>
<RANK> 90 </RANK>
<SONG> all i really want to do </SONG>
<ARTIST> cher </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> now i aint lookin to compete with you beat on cheat on mistreat you simplify you classify you deny defy mystify youall i really want to do is baby be friends with you baby be friends with younow i aint lookin to fight with you frighten you or uptighten you drag you down or drain you down chain you down or bring you downall i really want to do is baby be friends with you baby be friends with youi aint lookin to block you up dock or rock or lock you up analyze you categorize you finalize or advertise youall i really want to do yeah is baby be friends with you baby be friends with youi dont want to straightface you race or chase or track or trace you or disgrace you or displace you or define you or confine youall i really want to do yeah is baby be friends with you baby be friends with younow i dont want to meet your kin make you spin or do you in or select you or dissect you or inspect you or reject youall i really want to do is baby be friends with you baby be friends with you </LYRICS>
<SOURCE> 1.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 91 </DOCNO>
<RANK> 91 </RANK>
<SONG> take me back </SONG>
<ARTIST> little anthony and the imperials </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> take me back im beggin please take me back im on my knees for you to scold me hurt me hold me darling take me back when you belonged to me i had a jealous mind too late i learned that you were not the cheating kind take me back im beggin please take me back im on my knees for you to scold me hurt me hold me darling take me back my jealous eyes have learned to take a look or two they were too blind to see that i was losing you take me back im beggin please take me back im on my knees for you to scold me hurt me hold me darling take me back they say you live and learn and though ive tried before i promise never to be jealous any more take me back im beggin please take me back im on my knees for you to scold me hurt me hold me darling take me back </LYRICS>
<SOURCE> 3.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 92 </DOCNO>
<RANK> 92 </RANK>
<SONG> i want candy </SONG>
<ARTIST> the strangeloves </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> i know a girl whos soft and sweet shes so fine she cant be beat got everything that i desire sets the summer sun on fire i want candy i want candy go to see her with her hair hung down aint no finer girl in town candys just what the doctor ordered shes so sweet she makes my mouth water i want candy i want candy i want candy i want candy i want candy i want candy candy on the beach theres nothing better but i like candy when its wrapped in a sweater some day soon ill make her mine then ill have candy all the time i want candy i want candy hey hey hey hey hey hey hey hey hey </LYRICS>
<SOURCE> 3.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 93 </DOCNO>
<RANK> 93 </RANK>
<SONG> ooo baby baby </SONG>
<ARTIST> the miracles </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> ooo la la la la i did you wrong my heart went out to play but in the game i lost you what a price to pay hey im crying ooo baby baby ooo baby baby mistakes i know ive made a few but im only human youve made mistakes too im crying ooo baby baby ooo baby baby im just about at the end of my rope but i cant stop trying i cant give up hope cause i feel that one day ill hold you near whisper i still love you until that day is here im crying ooo baby baby ooo baby baby ooo baby baby ooo baby baby ooo </LYRICS>
<SOURCE> 3.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 94 </DOCNO>
<RANK> 94 </RANK>
<SONG> laugh at me </SONG>
<ARTIST> sonny bono </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> why cant i be like any guy why do they try to make me run son of a gun now what do they care about the clothes i wear why get their kicks from making fun yeah this worlds got a lot of space and if they dont like my face it aint me thats going anywhere no so i dont care let em laugh at me if thats the fare i have to pay to be free then baby laugh at me and ill cry for you and ill pray for you and ill do all the things that the man upstairs says to do ill do em for you ill do em ill do em all for you its gotta stop someplace its gotta stop sometime ill make sure that shes mine and maybe the next guy that dont wear a silk tie he can walk by and say hi say hi instead of why instead of why instead of why babe instead of why what did i do to you i dont know what to do </LYRICS>
<SOURCE> 3.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 95 </DOCNO>
<RANK> 95 </RANK>
<SONG> treat her right </SONG>
<ARTIST> roy head </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> i wanna tell you a story every man oughta know if you want a little lovin you gotta start real slow shes gonna love you tonight now if you just treat her right now squeeze her real gentle gotta make her feel good tell her that you love her like you know you should so if you dont treat her right she wont love you tonight if you practice my method just as hard as you can youre gonna get a reputation as a lovin man and youll be glad every night that you treated her right music to fade </LYRICS>
<SOURCE> 3.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 96 </DOCNO>
<RANK> 96 </RANK>
<SONG> the race is on </SONG>
<ARTIST> jack jones </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> i feel tears well in up from deep inside like my hearts goin to break and a stab of loneliness sharp and painful that i may never shake you might say that i was takin it hard since you gave me the final goodbye but dont you wager that ill hide the sorrow when i may break right down and cry now the race is on and here comes pride up the backstretch heartaches are goin to the inside my tears are holdin back theyre tryin not to fall my hearts out of the runnin true loves scratched for anothers sake the race is on and it looks like heartaches and the winner loses all one day i ventured in love never once suspectin what the final results would be how i lived in fear of wakin up each mornin and find that youre gone from me theres ache and pain in my heart for the name of the one that ill never replaced somebody new came up to win her and i came out in second place now the race is on and here comes pride up the backstretch heartaches are goin to the inside my tears are holdin back theyre tryin not to fall my hearts out of the runnin true loves scratched for anothers sake the race is on and it looks like heartaches and the winner loses all </LYRICS>
<SOURCE> 3.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 97 </DOCNO>
<RANK> 97 </RANK>
<SONG> troglodyte cave man </SONG>
<ARTIST> jimmy castor bunch </ARTIST>
<YEAR> 1972 </YEAR>
<LYRICS> what were gonna do right here is go back way back back into time when the only people that existed were troglodytes cave men cave women neanderthal troglodytes lets take the average cave man at home listening to his stereo sometimes hed get up try to do his thing hed begin to move something like this dance dance when he got tired of dancing alone hed look in the mirror gotta find a woman gotta find a woman gotta find a woman gotta find a woman hed go down to the lake where all the woman would be swimming or washing clothes or something hed look around and just reach in and grab one come here come here hed grab her by the hair you cant do that today fellas cause it might come off youd have a piece of hair in your hand and shed be swimming away from you haha this one woman just lay there wet and frightened he said move move she got up she was a big woman big woman her name was bertha bertha butt she was one of the butt sisters he didnt care he looked up at her and said sock it to me sock it to me sock it to me sock it to me sock it to me sock it to me sock it to me sock it to me she looked down on him she was ready to crush him but she began to like him she said falsetto ill sock it to ya daddy he said wha she said falsetto ill sock it to ya daddy you know what he said he started it way back then i wouldnt lie to you when she said falsetto ill sock it to ya daddy he said right on right on hotpants hotpants ugh ugh ugh </LYRICS>
<SOURCE> 5.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 98 </DOCNO>
<RANK> 98 </RANK>
<SONG> the boy from new york city </SONG>
<ARTIST> the ad libs </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> oo ah oo ah oo oo kitty tell us about the boy from new york city oo ah oo ah come on kitty tell us about the boy from new york city hes kinda tall hes really fine yeah yeah someday i hope to make him mine all mine yeah yeah and hes neat and oh so sweet and the way he looked at me just swept me off my feet yeah yeah oo ee you oughta come and see how he walks yeah yeah and he talks oo ah oo ah oo oos kitty tell us about the boy from new york city oo ah oo ah come on kitty tell us about the boy from new york city hes really down and hes no clown yeah yeah he has the finest penthouse ive ever seen in town yeah yeah and hes cute in his mohair suit and he keeps his pockets full of spending loot yeah yeah oo ee yeah were all right yeah oo oo evry time he says he loves me chills run down my spine evry time he wants to kiss me he makes me feel so fine thats him alright hes the boy from new york city we call him jill were all right oo ah oo ah kitty tell us about the boy from new york city oo ah oo ah kitty tell us about the boy from new york city </LYRICS>
<SOURCE> 3.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 99 </DOCNO>
<RANK> 99 </RANK>
<SONG> keep searchin well follow the sun </SONG>
<ARTIST> del shannon </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> no one will understand what ive gotta do ive gotta find a place to hide with my baby by my side shes been hurt so much they treat her mean and cruel they try to keep us far apart theres only one thing left we can dowe gotta keep searchin searchin find a place to hide searchin searchin shell be by my side if we gotta keep on the run well follow the sunah weeooh follow the sunah weeoohdoesnt matter doesnt matter what people might say shes mine and im gonna take her anywaygotta keep searchin searchin find a place to stay searchin searchin every night and day if we gotta keep on the run well follow the sunah weeooh follow the sunah weeooh </LYRICS>
<SOURCE> 1.0 </SOURCE>
</DOC>
<DOC>
<DOCNO> 100 </DOCNO>
<RANK> 100 </RANK>
<SONG> how sweet it is to be loved by you </SONG>
<ARTIST> marvin gaye </ARTIST>
<YEAR> 1965 </YEAR>
<LYRICS> how sweet it is to be loved by you yes baby how sweet it is to be loved by youooh baby i needed the shelter of someones arms and there you were i needed someone to understand my ups and downs and there you werewith sweet love and devotion deeply touching my emotioni want to stop stop and thank you baby i just want to stop and thank you baby hey nowhow sweet it is to be loved by you oh baby how sweet it is to be loved by you yes it isclose my eyes at night and wonder what would i be without you in my life everything was just a bore all the things i did seems ive done em before but you brightened up all of my days with a love so sweet in so many waysi want to stop stop and thank you baby i want to stop stop and thank you baby yeah how sweet it is to be loved by you oh yes it is how sweet it is to be loved by you yes it is babyyou were better to me than ive been to myself for me theres you and nobody elsestop stop and thank you baby i want to stop stop and thank you baby oh how sweet it is to be loved by you tell the truth baby how sweet it is to be loved by you well its like sugar in my soul how sweet it is to be loved by you oh yes it is </LYRICS>
<SOURCE> 1.0 </SOURCE>
</DOC>
</Collection> </Collection>
\ No newline at end of file
...@@ -187,7 +187,7 @@ def stemming(tokens): ...@@ -187,7 +187,7 @@ def stemming(tokens):
return tokens return tokens
def searching(dcmnt_xml, query): def proximity(dcmnt_xml, query):
all_doc_no = dcmnt_xml.getElementsByTagName('DOCNO') all_doc_no = dcmnt_xml.getElementsByTagName('DOCNO')
all_song = dcmnt_xml.getElementsByTagName('SONG') all_song = dcmnt_xml.getElementsByTagName('SONG')
...@@ -322,3 +322,110 @@ def detail(id): ...@@ -322,3 +322,110 @@ def detail(id):
return lyrics ,judul return lyrics ,judul
def phrase(dcmnt_xml, query):
all_doc_no = dcmnt_xml.getElementsByTagName('DOCNO')
all_song = dcmnt_xml.getElementsByTagName('SONG')
all_lyrics = dcmnt_xml.getElementsByTagName('LYRICS')
N_DOC = len(all_doc_no)
all_sentence_doc = []
for i in range(N_DOC):
sentence_doc = all_song[i].firstChild.data +' '+ all_lyrics[i].firstChild.data
all_sentence_doc.append(sentence_doc)
tokens_doc = []
for i in range(N_DOC):
tokens_doc.append(remove_punc_tokenize(all_sentence_doc[i]))
for i in range(N_DOC):
tokens_doc[i] = to_lower(tokens_doc[i])
for i in range(N_DOC):
tokens_doc[i] = stop_word_token(tokens_doc[i])
for i in range(N_DOC):
tokens_doc[i] = ([w for w in tokens_doc[i] if not any(j.isdigit() for j in w)])
for i in range(N_DOC):
tokens_doc[i] = stemming(tokens_doc[i])
all_tokens =[]
for i in range(N_DOC):
for j in tokens_doc[i]:
all_tokens.append(j)
new_sentences = ' '.join([w for w in all_tokens])
for j in CountVectorizer().build_tokenizer()(new_sentences):
all_tokens.append(j)
all_tokens = set(all_tokens)
##Phrase Search##
bi_gram_tokens = []
bi_gram_sentence_doc = []
for n in range(N_DOC):
token = []
for i in range(len(tokens_doc[n])):
if not(i == len(tokens_doc[n])-1):
token.append(tokens_doc[n][i]+'_'+tokens_doc[n][i+1])
bi_gram_tokens.append(tokens_doc[n][i]+'_'+tokens_doc[n][i+1])
bi_gram_sentence_doc.append(' '.join(token))
bi_gram_index = {}
for bigram_token in bi_gram_tokens:
doc_no = []
for i in range(N_DOC):
if(bigram_token in bi_gram_sentence_doc[i]):
doc_no.append(all_doc_no[i].firstChild.data)
bi_gram_index[bigram_token] = doc_no
lst_doc = bi_gram_index[query]
for i in range(len(lst_doc)):
lst_doc[i] = int(lst_doc[i])
for i in range(len(lst_doc)):
lst_doc[i] = int(lst_doc[i])
xtree = et.parse("InvertedIndexSimulator/data/dataset_STBI.xml")
xroot = xtree.getroot()
df_cols = ["SONG"]
rows = []
for node in xroot:
lirik = node.find("SONG").text if node is not None else None
rows.append({"SONG": lirik})
df = pd.DataFrame(rows, columns = df_cols)
judul = []
for i in lst_doc:
judul.append(df['SONG'][i-1])
hasil = {}
for key in lst_doc:
for value in judul:
hasil[key] = value
judul.remove(value)
break
numb = []
tit = []
for i, j in hasil.items():
numb.append(i)
tit.append(j)
res = {}
for key in numb:
for value in tit:
res[key] = value
tit.remove(value)
break
return res
\ No newline at end of file
@import url('https://fonts.googleapis.com/css?family=Quicksand:400,700&display=swap'); @import url('https://fonts.googleapis.com/css?family=Quicksand:400,700&display=swap');
body {
font-family: sans-serif;
}
h2, h3 { h2, h3 {
color: #00a2c6 color: #00a2c6
} }
...@@ -55,13 +50,6 @@ footer { ...@@ -55,13 +50,6 @@ footer {
border-radius: 15px; border-radius: 15px;
padding: 20px; padding: 20px;
margin-top: 10px; margin-top: 10px;
width: 100%;
}
table{
table-layout: fixed;
border: 1px solid black;
width: 100px;
} }
.jumbotron { .jumbotron {
...@@ -101,7 +89,6 @@ main { ...@@ -101,7 +89,6 @@ main {
} }
#content { #content {
width: 100%;
height: 100%; height: 100%;
} }
......
...@@ -6,6 +6,15 @@ ...@@ -6,6 +6,15 @@
<title>Song Lyric Search Engine</title> <title>Song Lyric Search Engine</title>
<link href="../../static/assets/css/dataframe.min.css" rel="stylesheet"> <link href="../../static/assets/css/dataframe.min.css" rel="stylesheet">
</head> </head>
<style>
table {
border-collapse: collapse;
}
table, td, th {
border: 1px solid black;
}
</style>
<body> <body>
<main> <main>
...@@ -20,21 +29,15 @@ ...@@ -20,21 +29,15 @@
</div> </div>
</div> </div>
<center><h1>Dataset</h1><br></center> <center><p style="font-size:40px;"><strong>Data</strong></p>
<table> <table>
<tr> <tr>
<th>DOCNO</th>
<th>ARTIST</th>
<th>SONG</th>
<th>LYRICS</th> <th>LYRICS</th>
</tr> </tr>
{% for i in DOCNO %} {% for i in LYRICS %}
<tr> <tr>
<td>{{ i }}</td> <td>{{ i }}</td>
<td>{{ j }}</td>
<td>{{ k }}</td>
<td>{{ l }}</td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
......
...@@ -19,11 +19,10 @@ ...@@ -19,11 +19,10 @@
<main> <main>
<div id="content"> <div id="content">
<article class="card"> <article class="card">
<center><h1>Pilih Dataset</h1><br> <center><h1>Pilih Metode Searching</h1><br>
<table> <table>
<tr> <tr>
<th><button onclick="pageRedirect()" class="button" style="vertical-align:middle"><span>International Billboard Song </span></button></th> <td><button onclick="data()"class="button" style="vertical-align:middle"><span> Mulai </span></button></td>
<td><button class="button" style="vertical-align:middle"><span>Indonesian Song </span></button></td>
</tr> </tr>
</table> </table>
</center> </center>
...@@ -39,7 +38,7 @@ ...@@ -39,7 +38,7 @@
</body> </body>
<script> <script>
function pageRedirect() { function data() {
window.location.href = "/dataframe"; window.location.href = "/dataframe";
} }
</script> </script>
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<center><h1 style="font-size:45px">Searching!<br></h1> <center><h1 style="font-size:45px">Proximity Search<br></h1>
<p style="font-size:20px"><strong>Silahkan masukkan lirik dari lagu yang ingin Anda temukan</strong></p> <p style="font-size:20px"><strong>Silahkan masukkan satu kata dalam lirik dari lagu yang ingin Anda temukan</strong></p>
<form method="POST" action="/result/"> <form method="POST" action="/result/">
{% csrf_token %} {% csrf_token %}
......
...@@ -6,6 +6,15 @@ ...@@ -6,6 +6,15 @@
<title>Song Lyric Search Engine</title> <title>Song Lyric Search Engine</title>
<link href="../../static/assets/css/trying.min.css" rel="stylesheet"> <link href="../../static/assets/css/trying.min.css" rel="stylesheet">
</head> </head>
<style>
table {
border-collapse: collapse;
}
table, td, th {
border: 1px solid black;
}
</style>
<body> <body>
<main> <main>
...@@ -21,7 +30,7 @@ ...@@ -21,7 +30,7 @@
</div> </div>
<center><p style="font-size:40px;"><strong>Indexing</strong></p> <center><p style="font-size:40px;"><strong>Indexing</strong></p>
<table width="100%"; border="1px solid black"> <table>
<tr> <tr>
<th>Token</th> <th>Token</th>
<th>Index</th> <th>Index</th>
...@@ -47,7 +56,7 @@ ...@@ -47,7 +56,7 @@
<script> <script>
function pageRedirect_prev() { function pageRedirect_prev() {
window.location.href = "/preprocessing4"; window.location.href = "/search";
} }
function pageRedirect_next() { function pageRedirect_next() {
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Song Lyric Search Engine</title>
<link href="../../static/assets/css/dataframe.min.css" rel="stylesheet">
</head>
<body>
<main>
<div id="content">
<article class="card">
<div>
<div>
<button onclick="pageRedirect_prev()" class="button" style="vertical-align:middle"><span>Previous</span></button>
</div>
</div>
<div class="row">
<center><h1 style="font-size:45px">Phrase Search<br></h1>
<p style="font-size:20px"><strong>Silahkan masukkan dua kata dalam lirik dari lagu yang ingin Anda temukan (hubungkan dengan <i>underscore</i>)</strong></p>
<p>*Misalnya "sugar_pie" </p>
<form method="POST" action="/resultphrase/">
{% csrf_token %}
<div class="form-row">
<input type="text" name="querysearch" placeholder="Masukkan Query Anda..."> <br>
<button type="submit">Cari!</button>
</div>
</form>
</div>
</center>
</article>
</div>
</main>
</body>
<script>
function pageRedirect_prev() {
window.location.href = "/search";
}
</script>
</html>
...@@ -6,6 +6,15 @@ ...@@ -6,6 +6,15 @@
<title>Song Lyric Search Engine</title> <title>Song Lyric Search Engine</title>
<link href="../../static/assets/css/dataframe.min.css" rel="stylesheet"> <link href="../../static/assets/css/dataframe.min.css" rel="stylesheet">
</head> </head>
<style>
table {
border-collapse: collapse;
}
table, td, th {
border: 1px solid black;
}
</style>
<body> <body>
<main> <main>
......
...@@ -6,6 +6,15 @@ ...@@ -6,6 +6,15 @@
<title>Song Lyric Search Engine</title> <title>Song Lyric Search Engine</title>
<link href="../../static/assets/css/dataframe.min.css" rel="stylesheet"> <link href="../../static/assets/css/dataframe.min.css" rel="stylesheet">
</head> </head>
<style>
table {
border-collapse: collapse;
}
table, td, th {
border: 1px solid black;
}
</style>
<body> <body>
<main> <main>
......
...@@ -6,6 +6,15 @@ ...@@ -6,6 +6,15 @@
<title>Song Lyric Search Engine</title> <title>Song Lyric Search Engine</title>
<link href="../../static/assets/css/dataframe.min.css" rel="stylesheet"> <link href="../../static/assets/css/dataframe.min.css" rel="stylesheet">
</head> </head>
<style>
table {
border-collapse: collapse;
}
table, td, th {
border: 1px solid black;
}
</style>
<body> <body>
<main> <main>
......
...@@ -6,6 +6,15 @@ ...@@ -6,6 +6,15 @@
<title>Song Lyric Search Engine</title> <title>Song Lyric Search Engine</title>
<link href="../../static/assets/css/dataframe.min.css" rel="stylesheet"> <link href="../../static/assets/css/dataframe.min.css" rel="stylesheet">
</head> </head>
<style>
table {
border-collapse: collapse;
}
table, td, th {
border: 1px solid black;
}
</style>
<body> <body>
<main> <main>
...@@ -48,7 +57,7 @@ ...@@ -48,7 +57,7 @@
} }
function pageRedirect_next() { function pageRedirect_next() {
window.location.href = "/indexing"; window.location.href = "/search";
} }
</script> </script>
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Inverted Index</title>
<!-- Bootstrap core CSS -->
<link href="../../static/assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom fonts for this template -->
<link href="../../static/assets/vendor/fontawesome-free/css/all.min.css" rel="stylesheet">
<link href="../../static/assets/vendor/simple-line-icons/css/simple-line-icons.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
<!-- Custom styles for this template -->
<link href="../../static/assets/css/landing-page.min.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-light bg-light static-top">
<div class="container">
<a class="navbar-brand" href="/">Search Simulator</a>
</div>
</nav>
<section class="testimonials text-center bg-light">
<div class="container">
<h2 class="mb-5">Lagu yang sesuai dengan query "{{ query }}"</h2>
<div class="row">
{% for key, values in res.items %}
<div class="col-lg-4">
<div class="testimonial-item mx-auto mb-5 mb-lg-0">
<h5><a href="/lyric/{{ key }}">Lagu No: {{ key }}</a></h5>
<h5>"{{ values }}"</h5>
</div>
</div>
{% endfor %}
</div>
</div>
</section>
<!-- Bootstrap core JavaScript -->
<script src="../../static/assets/vendor/jquery/jquery.min.js"></script>
<script src="../../static/assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Song Lyric Search Engine</title>
<link href="../../static/assets/css/trying.min.css" rel="stylesheet">
</head>
<body>
<main>
<div id="content">
<article class="card">
<div>
<div>
<button onclick="pageRedirect_prev()" class="button" style="vertical-align:middle"><span>Previous</span></button>
</div>
</div>
<div class="row">
<center><h1 style="font-size:45px">Searching!<br></h1>
<p style="font-size:20px"><strong>Silahkan pilih metode searching yang anda inginkan</strong></p>
<table>
<tr>
<th><button onclick="proximity()" class="button" style="vertical-align:middle"><span> Proximity Search </span></button></th>
<td><button onclick="phrase()"class="button" style="vertical-align:middle"><span>Phrase Search </span></button></td>
</tr>
</table>
</div>
</center>
</article>
</div>
</main>
</body>
<script>
function pageRedirect_prev() {
window.location.href = "/preproseccing4";
}
function proximity() {
window.location.href = "/indexing";
}
function phrase() {
window.location.href = "/phrases";
}
</script>
</html>
...@@ -14,7 +14,10 @@ urlpatterns = [ ...@@ -14,7 +14,10 @@ urlpatterns = [
path('preprocessing3/', views.preprocessing3), path('preprocessing3/', views.preprocessing3),
path('preprocessing4/', views.preprocessing4), path('preprocessing4/', views.preprocessing4),
path('indexing/', views.indexing), path('indexing/', views.indexing),
path('search/', views.search),
path('index/', views.index), path('index/', views.index),
path('phrase/', views.phrase),
path('result/', views.result), path('result/', views.result),
path('resultphrases/', views.resultphrases),
path('lyric/<int:id>', views.lyric, name='lyric'), path('lyric/<int:id>', views.lyric, name='lyric'),
] ]
\ No newline at end of file
...@@ -19,7 +19,6 @@ except ImportError: # not 2.6+ or is 3.x ...@@ -19,7 +19,6 @@ except ImportError: # not 2.6+ or is 3.x
except ImportError: except ImportError:
pass pass
def home(request): def home(request):
return render(request, 'apps/home.html') return render(request, 'apps/home.html')
...@@ -146,12 +145,18 @@ def indexing(request): ...@@ -146,12 +145,18 @@ def indexing(request):
def index(request): def index(request):
return render(request, 'apps/index.html') return render(request, 'apps/index.html')
def phrases(request):
return render(request, 'apps/phrases.html')
def search(request):
return render(request, 'apps/search.html')
def result(request): def result(request):
dcmnt_xml = minidom.parse("InvertedIndexSimulator/data/dataset_STBI.xml") dcmnt_xml = minidom.parse("InvertedIndexSimulator/data/dataset_STBI.xml")
if request.method == 'POST': if request.method == 'POST':
query = request.POST['querysearch'] query = request.POST['querysearch']
res = main.searching(dcmnt_xml, query) res = main.proximity(dcmnt_xml, query)
content = { content = {
'res':res, 'res':res,
...@@ -160,6 +165,20 @@ def result(request): ...@@ -160,6 +165,20 @@ def result(request):
return render(request, 'apps/result.html', content) return render(request, 'apps/result.html', content)
def resultphrase(request):
dcmnt_xml = minidom.parse("InvertedIndexSimulator/data/dataset_STBI.xml")
if request.method == 'POST':
query = request.POST['querysearch']
res = main.phrase(dcmnt_xml, query)
content = {
'res':res,
'query':query
}
return render(request, 'apps/resultphrase.html', content)
def lyric(request,id): def lyric(request,id):
lyrics, judul = main.detail(id) lyrics, judul = main.detail(id)
......
...@@ -26,8 +26,11 @@ urlpatterns = [ ...@@ -26,8 +26,11 @@ urlpatterns = [
path('preprocessing3/', views.preprocessing3), path('preprocessing3/', views.preprocessing3),
path('preprocessing4/', views.preprocessing4), path('preprocessing4/', views.preprocessing4),
path('indexing/', views.indexing), path('indexing/', views.indexing),
path('search/', views.search),
path('index/', views.index), path('index/', views.index),
path('phrases/', views.phrases),
path('result/', views.result), path('result/', views.result),
path('resultphrase/', views.resultphrase),
path('lyric/<int:id>', views.lyric, name='lyric'), path('lyric/<int:id>', views.lyric, name='lyric'),
] ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment