working on prefixes hypotities

git-svn-id: https://russianmorphology.googlecode.com/svn/trunk@87 d817d54c-26ab-11de-abc9-2f7d1455ff7a
This commit is contained in:
Alexander.A.Kuznetsov
2009-11-12 22:01:52 +00:00
parent 6246f020fd
commit 16613c543b
10 changed files with 395760 additions and 667245 deletions

View File

@ -22,6 +22,6 @@ import java.io.IOException;
public class RussianLuceneMorphology extends LuceneMorphology {
public RussianLuceneMorphology() throws IOException {
super(RussianLuceneMorphology.class.getResourceAsStream("/org/apache/lucene/morphology/russian/morph.info"), new RussianLetterDecoderEncoder());
super(RussianLuceneMorphology.class.getResourceAsStream("/org/apache/lucene/morphology/russian/morph.info"),RussianLuceneMorphology.class.getResourceAsStream("/org/apache/lucene/morphology/russian/prefixes.info"), new RussianLetterDecoderEncoder());
}
}

View File

@ -0,0 +1,96 @@
11
наи
е
8
258
255
289
252
292
262
296
286
наи
и
2
263
297
наи
ю
4
250
249
283
284
по
й
5
250
251
248
247
269
по
е
3
255
252
269
наи
й
12
239
273
250
251
248
277
247
282
281
243
285
284
наи
о
6
274
253
276
287
242
240
наи
м
10
256
290
257
291
279
278
294
260
244
245
наи
х
6
259
293
261
295
264
298
наи
я
2
246
280
наи
у
4
275
254
288
241

View File

@ -33,7 +33,7 @@ public class RussianLuceneMorphTest {
@Before
public void setUp() throws IOException {
luceneMorph = new LuceneMorphology(this.getClass().getResourceAsStream("/org/apache/lucene/morphology/russian/morph.info"), new RussianLetterDecoderEncoder());
luceneMorph = new RussianLuceneMorphology();
}
@Test

View File

@ -1,3 +1,4 @@
наилучший хороший
еду еда ехать
тестов тест
вина вино вина
@ -19,5 +20,5 @@
тест тест тесто
спам спам
спама спам
наигранный наигранный
наивный наивный
наигранный наигранный
наивный наивный