Skip to content

Predicting sequence tags and attributes of 'Sentence' object #12

@Aatlantise

Description

@Aatlantise

Hi,

I have been trying to use an ACE model to perform chunking predictions. I understand that I am able to use the --parse flag, but while the command works, I also want to be able to perform predictions on single sentences using something along the lines of SequenceTagger.predict in models/sequence_tagger_model.py. But I run into attribute errors upon running it because in lines 630-640 in embeddings.py, the code references alleged attributes of sentences: List[Sentence] like max_sent_len and char_seqs that do not exist.

If SequenceTagger.predict is deprecated, is it possible to make predictions on sentences whose gold sequence labels are unknown? It's my understanding that using the --parse flag requires gold labels to be included in the parse file as well.

Thanks in advance for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions