komiya-atsushi / darts-java Goto Github PK
View Code? Open in Web Editor NEWJava porting of Darts (Double ARray Trie System)
Java porting of Darts (Double ARray Trie System)
Throw ArrayIndexOutOfBoundsException When Open the File and extract Match Search.
i find a bug
in the resize method have a bug;
bug code is
System.arraycopy(used2, 0, used2, 0, allocSize);
right code is
System.arraycopy(used, 0, used2, 0, allocSize);
规范编码~~~
If the last two characters of the first string in the list are consecutive coding, then only the last character can be queried to return the correct result, which is different from the expected.
Code example:
//list add 123 or 234 or 345
//key = 3 or 4 or 5
//The results are all matchable
DoubleArrayTrie adt = new DoubleArrayTrie();
List list = new ArrayList();
list.add("123");
// 所有词必须先排序
Collections.sort(list);
// 构建DoubleArrayTrie
adt.build(list);
String key = "3";
// 检索key是否完全命中了词典中的某个词
int index = adt.exactMatchSearch(key);
System.out.println(index)
//print result 0
In the function of resize,"System.arraycopy(used2, 0, used2, 0, allocSize)" should be "System.arraycopy(used, 0, used2, 0, allocSize)"
i have some problem; when i use resize method and setting a small size; but the final build tries is wrong
Darts-java is a good implementation of DAT( double array trie), and I really appreciate your hard work. I developed a project, and some of its code based on your darts-java. darts-java is dual licensed, but I feel confused the words - " It is dual licensed, LGPL and Modified BSD." that comes from the website http://chasen.org/~taku/software/darts/. Can I just choose Modified BSD for my projects only?
Implementation of trie with double arrays. A port of Darts implemented in C++ to Java. Sen, who ported his old MeCab to Java, also has a DoubleArrayTrie with the same name, but since it was old and the license was forked from his LGPL-only state, it was not easy to use, so I rewrote it myself . . It is dual licensed, LGPL and Modified BSD.
すみません、このissueは無視してください。
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.