Skip to content

KWIC Functionality added!#51

Open
harisalam wants to merge 5 commits into
hvkone:masterfrom
harisalam:newFeature20210423
Open

KWIC Functionality added!#51
harisalam wants to merge 5 commits into
hvkone:masterfrom
harisalam:newFeature20210423

Conversation

@harisalam
Copy link
Copy Markdown
Contributor

Need integration of KWIC functionality with webapp...

@hvkone
Copy link
Copy Markdown
Owner

hvkone commented Apr 24, 2021

Can you do a pull request to the dev branch instead or just create a new branch?

@harisalam
Copy link
Copy Markdown
Contributor Author

Okay, I'll do a pull request to the dev branch!

Comment thread requirements.txt
Comment thread src/service.py
r'C:\Users\haris\Desktop\wordFinder\haris.txt')
# udt_english = UdpipeTrain(language_list[1],
# r'C:\Users\haris\Desktop\wordFinder\english-ewt-ud-2.5-191206.udpipe',
# r'C:\Users\haris\Desktop\wordFinder\haris.txt')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This line is commented to are you using this as a safe reference?

{% for cluster_sentence in cluster_result %}
<li class="list-group-item d-flex justify-content-between align-items-center">
{{cluster_sentence}}
# Add KWIC Functinality
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think, anyone need to add KWIC functionality code here.

Copy link
Copy Markdown
Collaborator

@Akhilraj03-Github Akhilraj03-Github left a comment

Choose a reason for hiding this comment

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

Did 5 reviews, Will do code reviews for other remaining files of this commit.

@Akhilraj03-Github
Copy link
Copy Markdown
Collaborator

Solved all the 8 merge conflicts for the master branch from the haris KWIC newfeature branch.
You can also check those files.
Good work guys.

Comment thread src/train/train_model.py
db_config['host'],
db_config['database'])
db_config['db_host'],
db_config['db_name'])
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

OK, Nice one Haris

Comment thread src/train/train_model.py
cleaned_data = re.sub('\w*\d\w*', '', data)
cleaned_data = re.sub('\[.*?\]', '', cleaned_data)
cleaned_data = re.sub('[‘’“”…]','',cleaned_data)
cleaned_data = re.sub('[‘’“”…]', '', cleaned_data)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is there a big difference between these two?

Comment thread src/train/train_model.py
if word.lemma and word.lemma not in string.punctuation:
if word.lemma and word.upostag and sentence_text:
combined_words .append(TResult(word.lemma, word.upostag, sentence_text))
combined_words.append(TResult(word.lemma, word.upostag, sentence_text))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice one, haris

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants