friso
zhoususheng / friso Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/friso
Automatically exported from code.google.com/p/friso
friso
我按照开发帮助文档开发调用API,但是总是报错,main.c:48: undefined reference to `friso_new',头文件等都已经包含进去,还是会报错。本人菜鸟,请见谅。
Original issue reported on code.google.com by [email protected]
on 28 Mar 2015 at 3:25
您好,请问有没有GBK编码的完整版字典呢?
Original issue reported on code.google.com by [email protected]
on 26 May 2014 at 5:13
如题,执行friso_free_config(config)时出现错误,提示程序停止工�
��。代码如下
#include <QCoreApplication>
#include <QLibrary>
#include <QDebug>
#include <QString>
#include <stdlib.h>
#include <malloc.h>
extern "C"
{
#include "friso.h"
}
int main(int argc, char *argv[])
{
// QCoreApplication a(argc, argv);
friso_t friso = friso_new();
friso_config_t config = friso_new_config();
//从指定的friso.ini文件中初始化friso和config.
friso_init_from_ifile(friso, config, "D:/friso.ini");
//创建分词任务&&设置分词内容
friso_task_t task = friso_new_task();
fstring text = "这里是要被分词的字符串今天的天气真好";
friso_set_text( task, text );
while ( ( friso_next( friso, config, task ) ) != NULL ) {
qDebug()<< task->hits->word ;
}
//释放资源...
friso_free_task( task );
qDebug()<<"1 hello i'm still fine!";
friso_free_config(config);
qDebug()<<"2 hello i'm still fine!";
friso_free(friso);
return 0;
// return a.exec();
}
使用QT5.2进行编译的,感谢解答
Original issue reported on code.google.com by [email protected]
on 20 Mar 2014 at 9:09
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 2 Jun 2015 at 2:05
What steps will reproduce the problem?
1. 我想写程序调用frisco的库,并且显示词性。
What is the expected output? What do you see instead?
1
能在原来分词的基础之上显示词性,或者能够以某种方式得��
�某个分割后的词的词性、
2 我只看到分词的结果,并没有标注词性
What version of the product are you using? On what operating system?
1.2 ubuntu 11.10
Please provide any additional information below.
Thank you !
Original issue reported on code.google.com by [email protected]
on 11 Jul 2013 at 7:21
What steps will reproduce the problem?
1. There is no deb or rpm packages for friso.
What is the expected output? What do you see instead?
We can install friso by binary packages such as deb or rpm.
Debian & Ubuntu:
sudo apt-get install libfriso0 libfriso-dev
CentOS & Fedora:
sudo yum install libfriso libfriso-devel
What version of the product are you using? On what operating system?
N/A
Please provide any additional information below.
I'm using friso library to provides chinese tokenizer for Groonga which is
fulltext search engine (http://groonga.org).
To make setup easy for Groonga user, I need to build own friso packages with
supporting autotools and so on. I've managed to prepare deb packages, but
sadly, there are no enough time to prepare rpm packages for new release of
Groonga. :-<
If friso packages are available from Debian or Ubuntu, CentOS or Fedora
official repository, it is very helpful for trying friso.
Are there plan to provide binary packages for deb or rpm?
Original issue reported on code.google.com by [email protected]
on 10 Feb 2014 at 3:04
重现步骤
1. cd src
2. make
出现错误,提示
/usr/bin/ld: friso.o: relocation R_X86_64_32 against `.rodata.str1.8' can not
be used when making a shared object; recompile with -fPIC
friso.o: 無法讀取符號:Bad value
环境
friso-1.2
gcc (GCC) 4.8.1
ArchLinux
临时解决方法
FFLAGS添加 -fPIC 可正确编译
Original issue reported on code.google.com by [email protected]
on 16 Jun 2013 at 3:41
win7,x64系统。
使用VS2013编译的,tst_friso文件,运行的时候没问题,退出到��
�friso_free_config(config)的时候就会报错。
报错地点:_CrtIsVaildHeapPoint(pUserData)。
使用的是GBK词库。
Original issue reported on code.google.com by [email protected]
on 21 Mar 2014 at 1:32
当文本中包含特别长的数字时,可能会出现access
violation的情况。但不是每次都出现。好像是内部某个buffer不��
�长,写出去了。
期望能处理这种情况,不出错就行。
======= TEST DATA START =======
这是一个长数字20130503452045104540443044804460452020130510452045104540443
04480446045202013051745204450444044304430445044502013053145204450444044554430445
04450201306144520445044404400443044504450902347238742984729847298437298410297198
2710002937123712894761298471928742394729
======= TEST DATA END =======
Original issue reported on code.google.com by [email protected]
on 13 Sep 2014 at 4:39
What steps will reproduce the problem?
1. Run the test program with memory leak detection.
Looks like the 'e->_val' is not freed:
__STATIC_API__ void default_fdic_callback( hash_entry_t e )
{
register uint_t i;
friso_array_t syn;
lex_entry_t lex = ( lex_entry_t ) e->_val;
//free the lex->word
FRISO_FREE( lex->word );
//free the lex->syn if it is not NULL
if ( lex->syn != NULL ) {
syn = lex->syn;
for ( i = 0; i < syn->length; i++ ) {
FRISO_FREE( syn->items[i] );
}
free_array_list( syn );
}
// ====> Missing Free here!
// FRISO_FREE(lex);
}
Original issue reported on code.google.com by [email protected]
on 28 Jan 2014 at 8:23
What steps will reproduce the problem?
1. linux 32
2. make
3. make install
4. vi friso --> friso.lex_dir = /root/friso-1.5.0/dict/
5. friso -init /root/friso-1.5.0/friso.ini
>friso: error while loading shared libraries: libfriso.so: cannot open shared
object file: No such file or directory
Original issue reported on code.google.com by [email protected]
on 29 Nov 2013 at 2:28
What steps will reproduce the problem?
https://code.google.com/p/friso/ shows how to use friso in c.
but it seems that it contains program errors.
What is the expected output? What do you see instead?
1) variable name typo
Actual snippet:
friso_t friso;
friso_config_t confg;
friso_task_t task;
Expected snippet:
friso_t friso;
friso_config_t config;
friso_task_t task;
It should be "config" instead of "confg".
2. pass friso_config_t to friso_next function
Actual snippet:
while ( ( friso_next( friso, friso->mode, task ) ) != NULL ) {
//printf("%s[%d,%d]/ ", task->hits->word, task->hits->type, task->hits->offset );
printf("%s/ ", task->hits->word );
}
Expected snippet:
while ( ( friso_next( friso, config, task ) ) != NULL ) {
//printf("%s[%d,%d]/ ", task->hits->word, task->hits->type, task->hits->offset );
printf("%s/ ", task->hits->word );
}
friso_next accepts friso_config_t as 2nd argument.
What version of the product are you using? On what operating system?
N/A
Please provide any additional information below.
N/A
Original issue reported on code.google.com by [email protected]
on 10 Jan 2014 at 12:35
What steps will reproduce the problem?
1. Currently, we need to modify src/Makefile to customize install prefix and so
on.
It is good enough for simplicity, but it is convenient if friso supports
autotools.
What is the expected output? What do you see instead?
just run ./configure && make && make install for installing friso.
What version of the product are you using? On what operating system?
I'm tried git HEAD on Ubuntu 13.10.
Please provide any additional information below.
I've modified to support autotools for friso. I'm very happy if they are merged
into HEAD.
https://github.com/kenhys/friso/tree/support-autotools
Original issue reported on code.google.com by [email protected]
on 10 Feb 2014 at 2:39
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.