Merhaba, Zemberek gRrpc sunucusuna sorgu geçmek için yazılmış bir PHP sınıfı (1) kullanıyorum fakat nedenini anlamadığım bir hata alıyorum (2). Sanırım bu sınıf birşeyleri eski implementasyona göre yapıyor. Zembereğin güncel sürümünü (0.17.1) PHP ile sorgulayabileceğim bir kod/kütüphane'si olan var mı, paylaşabilecek?
Teşekkürler. [1] https://degiske.com/2008/08/01/php-ile-zemberek-server-kullanimi/ [2] D:\zemberek>java -jar zemberek-full.jar StartGrpcServer --dataRoot D:\zemberek\data I|15:08:18.093|Zemberek external data root is : D:\zemberek\data | StartGrpcServer#run I|15:08:18.681|Root lexicon created in 446 ms. | DictionarySerializer#getDictionaryItems I|15:08:18.683|Dictionary generated in 497 ms | RootLexicon#defaultBinaryLexicon I|15:08:19.243|Initialized in 1068 ms. | TurkishMorphology#createWithDefaults I|15:08:20.632|Language model = Order : 2 1 Grams: Count= 300003 2 Grams: Count= 19499916 Fingerprint Bits= 24 Probabilty Bits= 8 Back-off bits= 0 Log Base : 2.72 Unigram Weight : 1.00 Using Stupid Back-off?: No Unknown Back-off N-gram penalty: 0.00 | TurkishSentenceNormalizer#<init> I|15:08:23.996|Zemberek grpc server started at port: 6789 | ZemberekGrpcServer#start Au 08, 2020 3:08:53 PM _zem.io.grpc.netty.shaded.io.grpc.netty.NettyServerTransport notifyTerminated INFO: Transport failed _zem.io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2Exception: HTTP/2 client preface string missing or corrupt. Hex dump for received bytes: 39202a206865726b657a31 at _zem.io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2Exception.connectionError(Http2Exception.java:85) at _zem.io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2ConnectionHandler$PrefaceDecoder.readClientPrefaceString(Http2ConnectionHandler.java:318) at _zem.io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2ConnectionHandler$PrefaceDecoder.decode(Http2ConnectionHandler.java:251) at _zem.io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java:450) at _zem.io.grpc.netty.shaded.io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:502) at _zem.io.grpc.netty.shaded.io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:441) at _zem.io.grpc.netty.shaded.io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:278) at _zem.io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) at _zem.io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) at _zem.io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352) at _zem.io.grpc.netty.shaded.io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1408) at _zem.io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) at _zem.io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) at _zem.io.grpc.netty.shaded.io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:930) at _zem.io.grpc.netty.shaded.io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) at _zem.io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:682) at _zem.io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:617) at _zem.io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:534) at _zem.io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496) at _zem.io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:906) at _zem.io.grpc.netty.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at _zem.io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) *Özgür Koca* <http://www.tankado.com/> <http://www.tankado.com/acik-kaynak/raspberry-pi-board/> <https://github.com/enseitankado> <https://www.instagram.com/ozgur0koca/> <https://www.linkedin.com/in/%C3%B6zg%C3%BCr-koca-287ba534/> <https://tr.pinterest.com/ozgurkocaandroi/> <https://twitter.com/OzgurKoca2> www.raspberrypikitabi.com
_______________________________________________ Linux E-Posta Listesi Linux@liste.linux.org.tr Liste kurallari: http://liste.linux.org.tr/kurallar.php Bu Listede neden bulunduğunuzu bilmiyorsanız veya artık bu listeden gelen e-postaları almak istemiyorsanız aşağıdaki bağlantı adresini kullanarak 1 dakika içinde üyeliğinizi sonlandırabilirsiniz. https://liste.linux.org.tr/mailman/listinfo/linux