Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
piaolingxue committed Feb 13, 2014
2 parents 0e98462 + da853ac commit b8bf23d
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 3 deletions.
33 changes: 30 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</parent>
<groupId>com.huaban</groupId>
<artifactId>jieba-analysis</artifactId>
<version>0.0.2</version>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>结巴分词工具(jieba for java)</name>
Expand Down Expand Up @@ -56,10 +56,37 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
23 changes: 23 additions & 0 deletions src/test/java/com/huaban/analysis/jieba/JiebaSegmenterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,29 @@ public class JiebaSegmenterTest extends TestCase {
private JiebaSegmenter segmenter = new JiebaSegmenter();
String[] sentences =
new String[] {
"找小姐",
"找美女",
"找小妹",
"学生妹",
"职业狐狸精",
"男公关",
"上门",
"抽獎",
"好声音",
"好聲音",
"夢之声",
"夢之聲",
"訂票",
"改簽",
"熱线",
"熱線",
"热線",
"電话",
"電話",
"醫院",
"代刷",
"撲剋牌",
"137-1234-1234",
"这是一个伸手不见五指的黑夜。我叫孙悟空,我爱北京,我爱Python和C++。",
"我不喜欢日本和服。",
"雷猴回归人间。",
Expand Down

0 comments on commit b8bf23d

Please sign in to comment.