-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve normalizer and added word2num
- Loading branch information
1 parent
92ec61f
commit c3a77bc
Showing
15 changed files
with
1,079 additions
and
474 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Word2Num | ||
================== | ||
|
||
.. note:: | ||
|
||
This tutorial is available as an IPython notebook | ||
`here <https://github.com/huseinzol05/Malaya/tree/master/example/word2num>`_. | ||
|
||
.. include:: load-word2num.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ Contents: | |
Summarization | ||
Topic | ||
Toxic | ||
Word2num | ||
Word2vec | ||
Mover | ||
Cluster | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
|
||
.. code:: python | ||
import malaya | ||
.. code:: python | ||
malaya.word2num.word2num('dua belas') | ||
.. parsed-literal:: | ||
12 | ||
.. code:: python | ||
malaya.word2num.word2num('kesebelas') | ||
.. parsed-literal:: | ||
11 | ||
.. code:: python | ||
malaya.word2num.word2num('kesebelas') | ||
.. parsed-literal:: | ||
11 | ||
.. code:: python | ||
malaya.word2num.word2num('negatif kesebelas') | ||
.. parsed-literal:: | ||
-11 | ||
.. code:: python | ||
malaya.word2num.word2num('seratus dua puluh tiga juta empat ratus lima puluh enam ribu tujuh ratus lapan puluh sembilan') | ||
.. parsed-literal:: | ||
123456789 | ||
.. code:: python | ||
malaya.word2num.word2num('negatif seratus dua puluh tiga juta empat ratus lima puluh enam ribu tujuh ratus lapan puluh sembilan') | ||
.. parsed-literal:: | ||
-123456789 | ||
.. code:: python | ||
malaya.word2num.word2num('negatif satu juta dua ratus tiga puluh empat ribu lima ratus enam puluh tujuh perpuluhan lapan sembilan') | ||
.. parsed-literal:: | ||
-1234567.89 |
Oops, something went wrong.