You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/01/28 22:41:24 UTC

[jira] [Commented] (OPENNLP-972) LM CLI should both calculate probability and suggest next tokens

    [ https://issues.apache.org/jira/browse/OPENNLP-972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15844216#comment-15844216 ] 

ASF GitHub Bot commented on OPENNLP-972:
----------------------------------------

GitHub user tteofili opened a pull request:

    https://github.com/apache/opennlp/pull/100

    OPENNLP-972 - add LM#predictNextTokens, rename to NGramLMTool

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tteofili/opennlp OPENNLP-972

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/opennlp/pull/100.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #100
    
----
commit d6c12d1a212174f02e031b146f58fcb27e639102
Author: Tommaso Teofili <te...@adobe.com>
Date:   2017-01-28T22:40:28Z

    OPENNLP-972 - add LM#predictNextTokens, rename to NGramLMTool

----


> LM CLI should both calculate probability and suggest next tokens
> ----------------------------------------------------------------
>
>                 Key: OPENNLP-972
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-972
>             Project: OpenNLP
>          Issue Type: Bug
>          Components: Command Line Interface
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 1.7.2
>
>
> {{LanguageModelTool}} uses {{LanguageModel#calculateProbability}} API however it may be useful to provide also the result of the {{LanguageModel#predictNextTokens}} API there.
> Also _LMTool_ should probably be {{NgramLanguageModelTool}} as to make it specific to the ngram based implementation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)