Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds FeatureExtractor and corresponding test class; #37

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vladisav
Copy link

@vladisav vladisav commented Sep 9, 2015

No description provided.

*
* @throws IOException if error occurred
*/
public FeatureExtractor(ConfigurationManager cm, String frontEndName, InputStream inputStream)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not expose configuration managers in high-level API, it is better to make all those details private.

Like I wrote in the original prototype, it is better to support different sample rates.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, but if I understand correctly, then the user can't choose the FrontEnd
configuration,
and it should always use the default xml configuration (default.config.xml)
(or we should hardcode the FrontEnd like in e.g. BandDetector)?

Thanks,
VJ

On Thu, Sep 10, 2015 at 1:57 PM, Nickolay V. Shmyrev <
notifications@github.com> wrote:

In sphinx4-core/src/main/java/edu/cmu/sphinx/api/FeatureExtractor.java
#37 (comment):

  • private static final Logger logger = Logger
  •        .getLogger("edu.cmu.sphinx.api.FeatureExtractor");
    
  • /**
  • \* Constructs a FeatureExtractor.
    
  • *
    
  • \* @param cm
    
  • \*            the configuration manager
    
  • \* @param frontEndName
    
  • \*            the name for the frontEnd to be used
    
  • \* @param inputStream
    
  • \*               data stream
    
  • *
    
  • \* @throws IOException if error occurred
    
  • */
    
  • public FeatureExtractor(ConfigurationManager cm, String frontEndName, InputStream inputStream)

We do not expose configuration managers in high-level API, it is better to
make all those details private.

Like I wrote in the original prototype, it is better to support different
sample rates.


Reply to this email directly or view it on GitHub
https://github.com/cmusphinx/sphinx4/pull/37/files#r39151311.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, configuration must be hidden. Our high-level API hides default.config.xml in the same way.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

I fixed the issues you mentioned, can you please review changes I made?

Thanks,
VJ

On Sat, Sep 12, 2015 at 11:08 AM, Nickolay V. Shmyrev <
notifications@github.com> wrote:

In sphinx4-core/src/main/java/edu/cmu/sphinx/api/FeatureExtractor.java
#37 (comment):

  • private static final Logger logger = Logger
  •        .getLogger("edu.cmu.sphinx.api.FeatureExtractor");
    
  • /**
  • \* Constructs a FeatureExtractor.
    
  • *
    
  • \* @param cm
    
  • \*            the configuration manager
    
  • \* @param frontEndName
    
  • \*            the name for the frontEnd to be used
    
  • \* @param inputStream
    
  • \*               data stream
    
  • *
    
  • \* @throws IOException if error occurred
    
  • */
    
  • public FeatureExtractor(ConfigurationManager cm, String frontEndName, InputStream inputStream)

Yes, configuration must be hidden. Our high-level API hides
default.config.xml in the same way.


Reply to this email directly or view it on GitHub
https://github.com/cmusphinx/sphinx4/pull/37/files#r39335845.

@vladisav
Copy link
Author

I made some changes, please review.

Copy link

@leif81 leif81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few minor things I noticed.

* the name for the frontEnd to be used
* @param inputStream
* data stream
*
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The javadoc params don't match the actual parameters.

/**
* Extracts all features from the supplied InputStream.
*
* @return float[][] when called first time, null otherwise
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return type was changed to a List. The javadoc should be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants