Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Question around ignoring trailing text #6

Open
rafael opened this issue Sep 28, 2017 · 1 comment
Open

Question around ignoring trailing text #6

rafael opened this issue Sep 28, 2017 · 1 comment

Comments

@rafael
Copy link

rafael commented Sep 28, 2017

Hi!

Thank you for pulling together this awesome library.

I have a question related to trailing text.

Let's say that I'm using the model from the README, and I have the following input:

s := nl.P("hello sir can you pleeeeeease play King by Lauren Aquilina ????") 

I would like ???? to be considered trash so the artist remains Lauren Aquilina. Is there a way to train the model in that way ? I was trying to play with the limits, but no luck.

@shixzie
Copy link
Owner

shixzie commented Sep 28, 2017

Hello!

Answering your question: no, there's no current way of capping the length of the trailing field since it's supposed that you don't know the length of whatever is in the text, but a model option may allow word-capping of the trailing field.

nlp.WithTrailingWordCap()

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

No branches or pull requests

2 participants