whatever lola wants的同义词

人人网 - 抱歉
哦,抱歉,好像看不到了
现在你可以:
看看其它好友写了什么
北京千橡网景科技发展有限公司:
文网文[号··京公网安备号·甲测资字
文化部监督电子邮箱:wlwh@··
文明办网文明上网举报电话: 举报邮箱:&&&&&&&&&&&&solr-synonym功能(同义词)
solr-synonym功能(同义词)
==========================schema.xml START=================================================&fieldType name="textMaxWord" class="solr.TextField" &^M
&analyzer type="index"&
&tokenizer class="com.chenlb.mmseg4j.solr.MMSegTokenizerFactory" mode="max-word"/&^M
&filter class="solr.StopFilterFactory" ignoreCase="false" words="stopwords.txt"/&
&filter class="solr.StandardFilterFactory"/&
&filter class="solr.RemoveDuplicatesTokenFilterFactory"/&
&/analyzer&
&analyzer type="query"&
&tokenizer class="com.chenlb.mmseg4j.solr.MMSegTokenizerFactory" mode="max-word"/&^M
&filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/&
&filter class="solr.StopFilterFactory" ignoreCase="false" words="stopwords.txt"/&
&filter class="solr.StandardFilterFactory"/&
&filter class="solr.RemoveDuplicatesTokenFilterFactory"/&
&/analyzer&
&/fieldType&
……&field name="title" type="textMaxWord" indexed="true" stored="true" termVectors="true"/&……==========================schema.xml END=================================================
==========================conf/synonyms.txt START=================================================
Some synonym groups specific to this exampleGB,gib,gigabyte,gigabytesMB,mib,megabyte,megabytesTelevision, Televisions, TV, TVs 中国,美国,德国,法国==========================conf/synonyms.txt END=================================================2)使用搜索title:中国
结果包括美国、中国的结果都会出现
solr(五)同义词
solr中自带有synonyms的功能,但是功能很有限,因为中文需要在分词的基础上进行搜索,所以官方的配置就没有多大意义。
概念说明:同义词大体的意思是指,当用户输入一个词时,solr会把相关有相同意思的近义词的或同义词的term的语段内容从索引中取出,展示给用户,提高交互的友好性(当然这些同义词的定义是要在配置文件中事先定义好的),比如:用户输入:日本,那么就可能有一些相关的近义词如:鬼子,屠杀,战犯等的词,这个可在配置文件中事先定义好。
一) 官方的配置:这个配置是在cookbook中有提及的,但是在中文分词上没办法加在一起,所以基本上没用。
1:在schema.xml的&types&标签中添加&fieldType&,如下:
&fieldType name="text_syn" class="solr.TextField"&
&analyzer type="query"&
&tokenizer class="solr.WhitespaceTokenizerFactory"/&
&filter class="solr.LowerCaseFilterFactory"/&
&/analyzer&
&analyzer type="index"&
&tokenizer class="solr.WhitespaceTokenizerFactory"/&
&filter class="solr.SynonymFilterFactory" synonyms="synonyms.
txt" ignoreCase="true" expand="false" />
&filter class="solr.LowerCaseFilterFactory"/&
&/analyzer&
&/fieldType&
这其中涉及到的synonyms.txt文件是配置文件中原来就有的,这个就是同义词的配置文件。大体格式如下
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#-----------------------------------------------------------------------
#some test synonym mappings unlikely to appear in real input text
aaafoo => aaabar
bbbfoo => bbbfoo bbbbar
cccfoo => cccbar cccbaz
fooaaa,baraaa,bazaaa
Some synonym groups specific to this example
GB,gib,gigabyte,gigabytes
MB,mib,megabyte,megabytes
Television, Televisions, TV, TVs
#notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming
#after us won't split it into two words.
中国,英国,日本
Synonym mappings can be used for spelling correction too
pixima => pixma
我已经在上面加入了中文的配置(由于字符集的问题,请修改完成后用EditNote打开并选择格式-->UTF-8编码,如有乱码就改),意思是输入这几个中文字都是一样的搜索结果,另外其中还有=>及以逗号分隔的,这里引用官方的话做参考:
Let's get back to our example for a second. What if the person from the marketing
department says that he/she wants not only to be able to find books that have the word
"machine" to be found when entering the word "electronics", but also all the books that
have the word "electronics", to be found when entering the word "machine". The answer
is simple. First, we would set the expand attribute (of the filter) to true. Then we would
change our synonyms.txt file to something like this:
machine, electronics
As I said earlier Solr would expand synonyms to equivalent forms.
就是说=>指一对一,以逗号分隔的是组群,也就是多对多。
当然这个还得定义相关字段为这个类型,如下。Java代码
&field name="content_copy" type="text_syn" indexed="true" stored="true"/&
这时,在界面analysis上测试一下, 输入pixima,
会出现pixma的匹配词组。[also的同义词]初中英语同义词互相转换及练习_also的同义词-牛bb文章网
[also的同义词]初中英语同义词互相转换及练习 also的同义词
所属栏目: &
初中英语同义词互相转换及练习1 alone=by oneselfWe finished the work alone./by ourselves.2 actually=in factActually, this question is very easy./ In fact, this question is very easy.3 also=too=as wellHe’s also a member of us./He’s a member of us, too./He’s a member of us as well.4 another=one moreI’m afraid you have to wait for another ten minutes./I’m afraid you have to wait ten more minutes.5 arrive in(at)/=get to=reachWhen she arrived in/got to/reachedAmerica, she suddenly felt lonely.6 iat once=right nowRun home at once=Run home right now.7 continue/go onLet’s continue/go on reading the passage.8 cost=spend=take=pay(1) I spent ten yuan of/(in) buying this book../This book cost me ten yuan./I paid ten yuan for this book.(2) It took us three days to fulfill this task./We spent three days on this task/in fulfilling this task.9 cross=go acrossBefore crossing/going across the road, please look both sides.10 sometimes/=t timesHe is a good man, but he can be really bad-tempered sometimes./at times.11 die/=ose one’s lifeThose people died/lost their lives during the earthquake.12 now/at the momentShe is talking about the problem with her classmates now./at the moment13 else=otherWhat else/other things can you see in the picture?14 then=t that moment/at that timeShe was shopping then/at that moment/at that time, so she knew nothing about it.15 like/love/enjoy/be fond of/be interested in/care forShe likes/enjoys/loves/is fond of/is interested in/cares for collecting stamps very much.16 will/be going to/be about toThe teachers will/are going to/are about to have a meeting tomorrow afternoon.17 want/would likeDo you want to go abroad to study further?/Would you like to go abroad to study further/18 can/be able to/have the ability to doCan you tell me the way to the library?/Are you able to tell me the way to the library?/Do you have the ability to tell me the way to the library?19 visit/call onLin Tao visited/called on his grandparents last week.20 favorite/like bestWhat’s your favorite sport?/What sport do you like best?21 happen/take placeWhat happened?/What took place?22 decide/make a decision/make up one’s mindShe can’t decide/make a decision/make up her mind where to go.23 found/establish/set upThe students founded/established/set up a group to protect the environment.24 finally/at last/in the endFinally/At last/In the end, she won the race.25 leave/be awayHe left yesterday./He has been away for a day.26 return/give backHe hasn’t returned the book to me./He hasn’t given the book back to me.return/go backHe will go back/return in a month.27 why/what for/how come-She cried so badly. CHow come?What did she cry so sadly for?/Why did she cry so badly?28 over/more thanOver/More than a hundred people tried this new kind of food.29 whatever/no matter whatWhatever/No matter what you find in the box, they belong to Amy.30 whenever/no matter whenWhenever/No matter when you come to see me, I will treat you as my relative.31 walk/ go…on footDo you walk to school every day?/Do you go to school on foot every day?32 should/ought to/be supposed toWe should/ought to/are supposed to use both sides of the paper to reduce wastes.33 population/peopleWhat is the population ofChina?/How many people are there inChina?34 quit/stop/drop/give upMy father quitted/stopped/dropped/gave up smoking.35 maybe/perhaps/may beMaybe/Perhaps it is not my pen./ The pen may not be mine.二 同义词组互相转换1 alot of/lots ofA lot of/Lots of artists will show their faces at the party.2 all over the world/around the worldEnglish is spoken widely all over the world./around the world3 not as(so)…as/less thanThis book is not as(so) interesting as that one./That book is more interesting than this one.4 as…as possible/as…as sb canRun home as fast as possible/as fast as you can to tell your mother the good news.5 at risk/in danger/in troubleThe pandas in our country are at risk./in trouble/in danger6 at the age of…/when sb.+be+…years oldHis parents died when he was six years old./His parents died at the age of six.7 because of/due to/as a result of/with one’s help/thanks toBecause of?/Due to/As a result of his help, he passed this exam.With his help/With the help of him, he passed the exam./Thanks to his help, he passed the exam.8 be careful/look out/take careLook out!/Be careful/Take care! The flood is coming.9 be worried about/worry aboutLiu Ming is worried about his following oral test./Liu Ming can’t stop his following oral test.10 both…and…/not only…but also…He is not only a singer but also a doctor./He is both a singer and a doctor.11 be good at/do well inHe is good at drawing./He does well in drawing.12 be proud of/take pride inWe are all proud of our country’s astronaut./He takes pride in our country’s astronaut.13 come up with/think of/have an ideaTome came up an idea./Tom thought of an idea./Tom had an idea.14 ride a bike/go…by bikeHe often rides a bike to work./He often goes to work by bike.15 come from/be fromWhere do you come from?/Where are you from?16 have a good time/enjoy oneself//play happilyWe had a good time/enjoyed ourselves/played happily on Christmas Day.17 have a pain in head/have a headacheHe didn’t go to school today, because he had a pain in head./had a headache18 hear from/receive(get) a letter fromShe is very happy to hear from/receive a letter from a Canadian friend.19 had better do/It’s best to doYou had better read in the sun./It’s best for you to read in the sun.20 how about/what aboutHow about/What about going skating?21 inorder to/in order that/to do/so thatHe worked day and night to be a successful man./He worked day and night in order to be a successful man./He worked day and night in order that he could be a successful man./He worked day and night so that he could be a successful man.22 keep off/keep away fromKeep off /Keep away from the grass!23 in/wearShe is in/wears a white dress today.24 keep sb. from doing/stop sb. (from) doing/prevent sb. (from) doingTrees can stop the soil flowing away./ Trees can prevent the soil flowing away./Trees can keep the soil from flowing away.25 learn …by oneself/ teach oneselfNobody taught him. He learnt it by himself./He taught himself.26 like …better than/prefer…to…/prefer to do…rather than do …John likes swimming better than skating./John prefers swimming to skating./John prefer to swim rather than skate.27 long, long ago/once upon a timeLong, long ago/Once upon a time, there was a beautiful princess living in an old castle.28 look after well/take good care ofThanks for looking after my cat /taking good care of my cat well while I was away.29 no longer/not …any longerShe is no longer a little girl./She is not a little girl any longer.30 shall we/Let’s..Shall we watch the film together?/Let’s watch the film together.31 take part in/join in/participate inHe took part in /joined in/participated in the match.32 too…to/so…that…/enough to…He is too busy to visit us./He is so busy that he can’t visit us./He is not free enough to visit us.三 同义句型互相转换1运用两种时态(一般过去时和现在完成时互相转换)(1) He left last year.(2) He has been away for one year.(3) He has been away since a year ago.(4) It is a year since he left.(5) One year has passed since he left.2最高级和比较级的互相转换(1) He is the tallest student in his class.(2) He is taller than any other student in his class.(3) He is taller than the other students in his class.(4) No one else is taller than him in his class.3运用两种语态(主动语态和被动语态互相转换)I clean my room every day./My room is cleaned every day.4感叹句的两种句型之间互相转换What a careful girl she is!/How careful the girl is!5运用关联词语合并句子(1) Amy can’t dance. Susan can’t, either.Neither Amy nor Susan can dance.(2) I has eaten breakfast and my mother has eaten it, too.Both my mother and I have eaten breakfast.6运用复合句和不定式互相转换(1) I hope that I can visit the moon one day./I hope to visit the moon one day.(2) He told me how he could use a computer./He told me how to use a computer.7运用不同的句式结构互相转换(1) She wants to go shopping and her friends want to go shopping, too./She wants to go shopping, and so do her friends.(2) He went to bed after he finished his homework./He went to bed after finishing his homework./He didn’t go to bed until he finished his homework.(3) Come on, or we’ll miss the early bus./If we don’t hurry, we’ll miss the early bus.(4) The man gave us a talk last week, and he will give us another talk this week./The man who gave us a talk last week will give us another talk this week.8用it做形式主语互相转换(1) He can finish the work easily./It is easy for him to finish the work.(2) We found it hard to shake./We found it was hard to skate.四 实战演练1People everywhere sat and laughed at them until the tears ran down their faces.People ______ and _______sat and laughed at them until the tears ran down their faces.2Fred was visiting his mother on her 95th birthday.Fred was visiting his mother _______ she was ______ years old.3She lives alone.She lives ________ __________.4 Due to the way they eat, they have a high rate of cancer and heart disease.________ ________ the way they eat, they have a high rate of cancer and heart disease.5 But it took her a long time to find out.But she ______ a long time _______ out.6 Ten years later, Tom became a strong boy and became a good swimmer, too.Ten years later, Tom became _______a strong boy ________ a good swimmer.7 Shy people are also good at working with others because they think more for other people.She people also ________ ______ in working with others because they think more for other people.8 Mark decided to go sailing in his boat with his friend Dan.Mark _______ a ________ to go sailing in his boat with his friend Dan.9 Once there was something wrong with a machine in a factory.Once a machine in a factory ________ __________.10 When parents have poor eating habits, their children usually do, too.When parents have poor eating habits, _______ ________ their children.11 Inthe computer game houses, it takes people a lot of money competing with the machines.People _____ ______ money in competing with the machines in the computer games houses.12 When the local police began to look for the pigs, newspaper reporters from around the country joined them.When the local police began to look for the pigs, newspaper reporters from ________ _______ the country joined them.13 When he first reached the island, he didn’t know what he could find in this strange place.When he first _________ _______ the island, he didn’t know what he could find in this strange place.14 Some dentists say that chewing sugarless gum can help take care of people’s teeth.Some dentists say that chewing sugarless gum can help ________ ________ people’s teeth.15 He was different from other children.He was _______ the ______ as other children.16 Bob is twice as old as Jack, so he is now thirty.Jack is _______ years ________ than Bob.17 I teach something to air hostesses.Air hostesses ________ something _______ me.18 The world is full of variety.The world is ________ _________ variety.19 To his surprise, the taste was nice.He was ______ ______ the taste was nice.20 Once in the area, a car s almost a must.You _______ ______ take a car in the area.21 But when you are joined to the Internet, there are many things you can do.But when you are joined to the Internet, there are _________ _______ things you can do.22Beijingwill be rainy.There will be _______ ________Beijing.23 Mrs Smith and her friends worked hard and the idea was interesting to more and more people over the country.Mrs Smith and her friends worked hard and more and more people over the country became ___________ _______ the idea.24 But now there is a Winter Swimming Club and it has over 2,000 members.But now there is a Winter Swimming Club and it has _________ ________ 2,000 members.25 Before crossing the road, stop and look both ways.Before ______ _______ the road, stop and look both ways.26 We call this mark “watermark”.This mark ____ ____ “watermark”.27 They hoped the government would act quickly to conserve nature.They hoped the government would act quickly _______ _______ to conserve nature.28 The Komodo lizard is the world’s largest lizard.The Komodo lizard is larger than ______ _____ lizard in the world.29 We haven’t done anything to improve the exam system.We have _______ _______ to improve the exam system.30 It is much harder to do it with TV or radio advertisements.It is much ______ ________ to do it with TV or radio advertisements.31 He was unable to walk any more.He ______ _______ walked.32 The bookshelf was too heavy for Miss Green to carry.The bookshelf was _____ heavy ______ Miss Green didn’t carry it.33 Inorder to solve this population problem,Chinahas begun a “one-child’ policy.Chinahas begun a “one-child” policy ______ ________ it solved this population problem.34 He scored more goals than anyone else on his team.He scored _______ _______ goals on his team.35 He spent very little time at school, perhaps no more than a year in all.It _______ _______ very little time at school, perhaps no more than a year in all.36 Aschool inspector was coming to visit a school.A school inspector was _____ a visit _____ a school.37 Why not look at the funny side and laugh instead?_________ ________ you look at the funny side and laugh instead?38 Good movies are the ones that you remember and like to see another time.Good movies are the ones that you remember and like to see ________ than _______.39 Many public people use web blogs to express their thoughts.Many public people use web blogs ________ ________ their thoughts.40 I think maybe it was left on the shelf in the bedroom.I think it _______ _____ left on the shelf in the bedroom.41 Both my father and my mother came from towns inMexico.Both of _____ _______ came from towns inMexico.42 When Bloom was 16, he moved toLondon.At the _______ _____ 16, Bloom moved toLondon.43 I was born inAmsterdamand lived there for many years.I ________ ______ inAmsterdam.44 Nobody had ever seen such a big orange.Nobody had ever seen _____ big ________ orange.45 Sometimes she only sleeps for no more than four hours.________ ________ she only sleeps for no more than four hours.46 She bought me many presents.She bought many presents ______ ______.47 The winter will be full of happiness by your own hands.The winter will be ______ ________ happiness by your own hands.48 They all agreed with me.They all ______ yes ________ me.49 Beautiful flowers need pollinating.Beautiful flowers need _______ _______ pollinated.50 The girl smiled sweetly, so he felt very happy.The _____ smile of the girl ______ him very happy.51 I don’t like growing flowers. Mary doesn’t like growing flowers, either._______ I ______ Mary likes growing flowers.52 Giving makes people happy, not only those who receive, but also those who give.Giving makes people happy, ________ those who receive _______ those who give.53 Your promises are too big, and then they won’t be able to win people’s trust.Your promises are ______ big ___ be able to win people’s trust.54 What a serious thing a promise is!_________ _______ a promise is!55 They only want to win.They want _______ _______ to win.56 The better you get along with others, the easier it is for you to succeed.Get along _______ with others and that helps you succeed ______.57 It was stuck and he couldn’t talk or breathe.It was stuck and he could _______ talk ______ breathe.58 What do you think of the music?_______ do you ________ the music?59 I am190cmand Jenny is190cm, too.Jenny is ______ tall _____ I.60 How about playing basketball with us?________ ________ playing basketball with us?61 Mary and Tom donated money to the poor children.62 The rain was heavy yesterday.It ______ _______ yesterday.63 I hope that I can visit the moon some day.I hope ________ _______ the moon some day.64 Jenny’s grandmother died two years ago.Jenny’s grandmother ______ been ______ for two weeks.65 He can finish the work easily.66 He got up so late that he couldn’t catch the bus.He got up ________ ________ ________ catch the bus.67 Walking after meals is very helpful._______ is very helpful _______ walk after meals.68 Actually, we have been friends for long.________ _______, we have been friends for long.69 My coat is similar to yours in many ways.Our coats have a lot _______ ________.70 Mother takes care of you as much as possible.Mother _______ ________ you as much as possible.71 However, experts say that the tea does not have relation toTibet.However, experts say that the tea has _______ to _______ withTibet.72 I’m supposed to do some homework this weekend.I _______ ________ some homework this weekend.73 She was glad she kept her promise.She was glad _________ ________ her promise.74 The princess told the frog to leave.The frog ______ told ________ leave by the princess.75 We had a great time going on a picnic.We _______ ________ going on a picnic.76 I shall do whatever you please.I shall do ______ ________ what you please.77 I’m fromChina.My _________ is _________.78 How long is the classroom?_________ is the _______ of the classroom?79 I am the owner of the dictionary.The dictionary ________ _________ me.80 I’m looking forward to seeing her again.I _______ ________ see her again.答案:1 here, there 2 when, 95 3 by herself 4 Because, of 5 spent, finding 6 both, and 7 do, well 8 made, decision 9 didn’t, work 10 so, do 11 spend, much 12 all, over 13 got, to 14 look, after 15 not, same 16 fifteen, younger 17 learns, from 18 filled, with 19 surprised, at 20 have, to 21 lots, of 22 much, rain 23 interested, in 24 More, than 25 going across 26 is called27 inorder 28 any other 29 done, nothing 30 more, difficult 31 no, more 32 so, that 33 so, that 34 the, most35 took, him 36 on, to 37 Why, don’t 38 more, once 39 for, expressing 40 may, be 41 my, parents 42 age, of 43 grew, up 44 so, an 45 At, times 46 for, me 47 filled, with 48 said, to 49 to, be 50 sweet, made 51 Neither, nor 52 both, and 53 too, to 54 How, serious 55 nothing, but 56 well, easily 57 neither, nor 58 How, like 59 as, as 60 What, about 61 Not only, but also 62 rained, heavily 63 to, visit 64 has, dead 65 easy, to 66 too late to 67 It, to 68 In, fact 69 in, common 70 looks, after 71 nothing, do 72 should, do 73 to, keep 74 was, to 75 enjoyed, ourselves 76 no. matter 77 nationality, Chinese 78 What, length 79 belongs, to 80 expect, to欢迎您转载分享:
更多精彩:

我要回帖

更多关于 all that she wants 的文章

 

随机推荐